@@ -3,38 +3,38 @@ plugins {
33 id ' java'
44 id ' java-gradle-plugin'
55 id ' idea'
6+ id ' maven-publish'
67 id ' io.github.gradle-nexus.publish-plugin' version ' 1.0.0'
78 id ' com.gradle.plugin-publish' version ' 0.14.0'
89 id ' signing'
910}
1011
11- def defGroupId = ' com.appland'
12- def defArtifactId = ' appmap-gradle-plugin'
13- def defName = ' AppMap Gradle Plugin'
14- def defVersion = " 1.0.2"
15- def defDescription = ' Gradle plugin to record AppMaps'
16- def defGitSlug = " applandinc/appmap-gradle-plugin"
17- def defMavenRepo = ' https://s01.oss.sonatype.org'
18-
19- def paramSignKey = findProperty(' signingKey' )
20- def paramSignPassword = findProperty(" signingPassword" )
21- def paramRepoUsername = findProperty(' ossrhUsername' )
22- def paramRepoPassword = findProperty(' ossrhPassword' )
23- def paramGradleKey = findProperty(' gradlePublishKey' )
24- def paramGradleSecret = findProperty(' gradlePublishSecret' )
25- def paramDescription = findProperty(' artifactDescription' ) ?: defDescription
26- def paramName = findProperty(' artifactName' ) ?: defName
27- def paramGroupId = findProperty(' publicationGroupId' ) ?: defGroupId
28- def paramArtifactId = findProperty(' publicationArtifactId' ) ?: defArtifactId
29- def paramGitSlug = System . getenv(" TRAVIS_REPO_SLUG" ) ?: defGitSlug
30- def paramMavenRepo = findProperty(' mavenRepo' ) ?: defMavenRepo
31-
32- def paramVersion = findProperty(' paramVersion' )
33- def travisVersion = System . getenv(" TRAVIS_BRANCH" )
34- def versionLikeRegexp = / ^\d +\.\d +.*/
35- def travisVersionOK = travisVersion && (travisVersion ==~ versionLikeRegexp)
36-
37- paramVersion = paramVersion ?: ( travisVersionOK ? travisVersion : defVersion )
12+ def defGroupId = ' com.appland'
13+ def defArtifactId = ' appmap-gradle-plugin'
14+ def defName = ' AppMap Gradle Plugin'
15+ def defVersion = " 1.0.2"
16+ def defDescription = ' Gradle plugin to record AppMaps'
17+ def defGitSlug = " applandinc/appmap-gradle-plugin"
18+ def defMavenRepo = ' https://s01.oss.sonatype.org'
19+
20+ def paramSignKey = findProperty(' signingKey' )
21+ def paramSignPassword = findProperty(" signingPassword" )
22+ def paramRepoUsername = findProperty(' ossrhUsername' )
23+ def paramRepoPassword = findProperty(' ossrhPassword' )
24+ def paramGradleKey = findProperty(' gradlePublishKey' )
25+ def paramGradleSecret = findProperty(' gradlePublishSecret' )
26+ def paramDescription = findProperty(' artifactDescription' ) ?: defDescription
27+ def paramName = findProperty(' artifactName' ) ?: defName
28+ def paramGroupId = findProperty(' publicationGroupId' ) ?: defGroupId
29+ def paramGitSlug = System . getenv(" TRAVIS_REPO_SLUG" ) ?: defGitSlug
30+ def paramMavenRepo = findProperty(' mavenRepo' ) ?: defMavenRepo
31+
32+ def paramVersion = findProperty(' paramVersion' )
33+ def travisVersion = System . getenv(" TRAVIS_BRANCH" )
34+ def versionLikeRegexp = / ^\d +\.\d +.*/
35+ def travisVersionOK = travisVersion && (travisVersion ==~ versionLikeRegexp)
36+
37+ paramVersion = paramVersion ?: (travisVersionOK ? travisVersion : defVersion)
3838version = paramVersion
3939group = paramGroupId
4040
@@ -51,8 +51,9 @@ dependencies {
5151 localGroovy()
5252 testImplementation ' org.junit.jupiter:junit-jupiter-api:5.5.2'
5353 testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.5.2'
54+ implementation ' com.appland:appmap-agent:[1.3, 2.0)'
5455 implementation ' commons-lang:commons-lang:2.6'
55- implementation ' com.google.guava:guava:30.1.1-jre'
56+ implementation ' com.google.guava:guava:30.1.1-jre'
5657 implementation ' org.assertj:assertj-core:3.15.0'
5758}
5859
@@ -84,7 +85,7 @@ gradlePlugin {
8485 id = ' com.appland.appmap'
8586 displayName = ' AppMap plugin'
8687 description = ' Interactive maps and architecture analysis to help you write better Java.'
87- implementationClass = ' com.appland.appmap.AppmapPlugin '
88+ implementationClass = ' com.appland.appmap.gradle.AppMapPlugin '
8889 }
8990 }
9091}
@@ -100,24 +101,23 @@ publishing {
100101 publications {
101102 withType(MavenPublication ) {
102103 pom {
103- name = paramName
104+ name = paramName
104105 description = paramDescription
105- version = paramVersion
106- url = " https://appland.com"
106+ version = paramVersion
107+ url = " https://appland.com"
107108
108109 licenses {
109110 license {
110111 name = " MIT"
111- url = " https://raw.githubusercontent.com/$paramGitSlug /master/LICENSE"
112+ url = " https://raw.githubusercontent.com/$paramGitSlug /master/LICENSE"
112113 }
113114 }
114115 developers {
115116 developer {
116- // id = "kgilpin"
117117 name = " Kevin Gilpin"
118118119119 organization = " AppLand Inc."
120- url= " https://dev.to/kgilpin"
120+ url = " https://dev.to/kgilpin"
121121 }
122122 }
123123 scm {
@@ -133,10 +133,10 @@ publishing {
133133nexusPublishing {
134134 repositories {
135135 sonatype {
136- nexusUrl = uri(paramMavenRepo + " /service/local/" )
137- snapshotRepositoryUrl = uri(paramMavenRepo + " /content/repositories/snapshots" )
138- username = paramRepoUsername
139- password = paramRepoPassword
136+ nexusUrl = uri(paramMavenRepo + " /service/local/" )
137+ snapshotRepositoryUrl = uri(paramMavenRepo + " /content/repositories/snapshots" )
138+ username = paramRepoUsername
139+ password = paramRepoPassword
140140 }
141141 }
142142}
0 commit comments