Skip to content

Commit b891a77

Browse files
committed
Fix source compatibility and add publishing to maven central snahshot repo.
1 parent 7f0b8fe commit b891a77

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

build.gradle

+12-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ plugins {
55
}
66

77
group 'io.securecodebox'
8-
version '0.0.1-SNAPSHOT'
8+
version '0.0.2-SNAPSHOT'
9+
sourceCompatibility = '11'
910

1011
repositories {
1112
mavenCentral()
@@ -57,12 +58,16 @@ publishing {
5758
}
5859
}
5960
repositories {
60-
maven {
61-
name = "GitHubPackages"
62-
url = "https://maven.pkg.github.com/securecodebox/defectdojo-client-java"
63-
credentials {
64-
username = System.getenv("GITHUB_ACTOR")
65-
password = System.getenv("GITHUB_TOKEN")
61+
repositories {
62+
maven {
63+
// change URLs to point to your repos, e.g. http://my.org/repo
64+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
65+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
66+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
67+
credentials{
68+
username = System.getenv("MAVEN_USERNAME")
69+
password = System.getenv("MAVEN_PASSWORD")
70+
}
6671
}
6772
}
6873
}

0 commit comments

Comments
 (0)