Mercurial > public > gradleplugins
view build.gradle @ 35:80e46acfd82a version-0.4.6 tip
Add publishing configuration for publishToMavenLocal task
:
author | Kyle Miller <kyle.miller@mcoecn.org> |
---|---|
date | Tue, 09 Aug 2022 13:05:45 +0100 |
parents | 30f522dca380 |
children |
line wrap: on
line source
/* * Copyright (c) 2020. Ohio Department of Education. - All Rights Reserved. * Unauthorized copying of this file, in any medium, is strictly prohibited. * Written by the State Software Development Team (http://ssdt.oecn.k12.oh.us/) * */ def ssdtInit = 'init70' apply from: resources.text.fromInsecureUri("${gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'}/${ssdtInit}.gradle") description = "SSDT Gradle Plugins" group="org.ssdt_ohio" apply plugin: 'groovy' apply plugin: 'idea' apply plugin: 'maven-publish' defaultTasks 'clean', 'build' sourceCompatibility = 1.8 repositories { maven { url 'https://docker.ssdt.io/artifactory/ssdt-repo' } } // Called by Gradle task publishToMavenLocal // POM file gets published to: $USER_HOME\.m2\repository\org\ssdt_ohio\ssdt.gradle\$version publishing { publications { maven(MavenPublication) { groupId = "${group}" artifactId = "ssdt.gradle" version = "${version}" from components.java } } } dependencies { implementation localGroovy() implementation gradleApi() implementation "org.asciidoctor:asciidoctorj:1.5.4" implementation 'org.apache.commons:commons-lang3:3.4' testImplementation 'junit:junit:4.10' } idea.project { jdkName = '1.8' } idea.module { downloadSources = true downloadJavadoc = true }