@@ -8,7 +8,6 @@ buildscript {
88 }
99}
1010
11- apply plugin : " com.jfrog.bintray"
1211apply plugin : " maven-publish"
1312apply plugin : " java"
1413
@@ -17,7 +16,7 @@ apply plugin: 'com.github.kt3k.coveralls'
1716
1817
1918
20- group = ' com.developerb.nmxlp ' // Yeah I know about the typo, but hard to change now that it's in JCenter..
19+ group = ' com.developerb.nmxmlp '
2120version = ' 1.4.1'
2221
2322compileJava {
@@ -62,8 +61,8 @@ jacocoTestReport {
6261dependencies {
6362 implementation ' com.google.guava:guava:28.0-jre'
6463
65- testImplementation ' org.junit.jupiter:junit-jupiter-api:5.5.2 '
66- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.5.2 '
64+ testImplementation ' org.junit.jupiter:junit-jupiter-api:5.6.0 '
65+ testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.6.0 '
6766 testImplementation ' org.assertj:assertj-core:3.13.2'
6867}
6968
@@ -81,55 +80,22 @@ test {
8180 useJUnitPlatform()
8281}
8382
84- artifacts {
85- archives sourcesJar, javadocJar
86- }
8783
88- publishing {
89- publications {
90- mavenJava(MavenPublication ) {
91- from components. java
92-
93- artifact sourcesJar {
94- classifier " sources"
95- }
9684
97- artifact javadocJar {
98- classifier " javadoc"
85+ publishing {
86+ repositories {
87+ maven {
88+ name = " GitHubPackages"
89+ url = uri(" https://maven.pkg.github.com/kimble/nmxmlp" )
90+ credentials {
91+ username = System . getenv(" GITHUB_ACTOR" )
92+ password = System . getenv(" GITHUB_TOKEN" )
9993 }
10094 }
10195 }
102- }
103-
104-
105- if (System . getenv(" BINTRAY_USER" ) && System . getenv(" BINTRAY_KEY" )) {
106- bintray {
107- user = System . getenv(" BINTRAY_USER" )
108- key = System . getenv(" BINTRAY_KEY" )
109-
110- publications = [ ' mavenJava' ]
111-
112- dryRun = false
113- publish = true
114-
115- pkg { // package will be created if does not exist
116- repo = ' maven'
117- name = ' nmxmlp'
118- desc = ' Simple Java-library for extracting and updating small-ish xml documents'
119-
120- websiteUrl = ' https://github.com/kimble/nmxmlp'
121- issueTrackerUrl = ' https://github.com/kimble/nmxmlp/issues'
122- vcsUrl = ' https://github.com/kimble/nmxmlp.git'
123- githubRepo = ' kimble/nmxmlp'
124- githubReleaseNotesFile = ' README.md'
125-
126- licenses = [' Apache-2.0' ]
127- labels = [' java' , ' xml' , ' library' ]
128-
129- publicDownloadNumbers = true
96+ publications {
97+ gpr(MavenPublication ) {
98+ from(components. java)
13099 }
131100 }
132101}
133- else {
134- logger. debug(" Set bintrayUser and bintrayKey in ~/.gradle/gradle.properties to enable bintray upload" )
135- }
0 commit comments