-
Nicholas Blair authored
We don't have a facility to apply the plugin itself without fetching an earlier version. Includes a script that delegates to the same logic as the task.
Nicholas Blair authoredWe don't have a facility to apply the plugin itself without fetching an earlier version. Includes a script that delegates to the same logic as the task.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build.gradle 1.81 KiB
group 'edu.wisc.doit.gradle'
version '0.1.1'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.github.zafarkhaja:java-semver:0.9.0'
compile 'org.ajoberstar:grgit:1.7.0'
testCompile 'junit:junit:4.12'
}
// provides 'publishToMavenLocal' task for local verification
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://code.doit.wisc.edu/maven/content/repositories/uw-releases") {
authentication(userName: codeDoitUsername, password: codeDoitPassword)
}
pom.project {
name 'Continuous Publish Gradle Plugin'
packaging 'jar'
description 'A Gradle plugin providing tasks to help continuously publish your projects.'
scm {
url 'https://git.doit.wisc.edu/adi-ia/continuous-publish-plugin'
connection 'scm:git:git@git.doit.wisc.edu/adi-ia/continuous-publish-plugin.git'
developerConnection 'scm:git:ssh://git@git.doit.wisc.edu/adi-ia/continuous-publish-plugin.git'
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}
/**
* Gradle doesn't have a way for us to apply the local plugin, we'd have to depend on a prior release.
* Add a local version of the confirmProjectVersionIncremented task that calls the same logic
* as the released task.
*
* See src/main/groovy/localTaskScript.groovy
*/
task confirmProjectVersionIncremented (dependsOn: 'classes', type: JavaExec) {
main = 'localTaskScript'
classpath = sourceSets.main.runtimeClasspath
args project.projectDir.absolutePath
args project.version
}