Skip to content

Commit 7544d7d

Browse files
Heiko KieselWeltraumschaf
authored andcommitted
Bypass false-positive warning with alternative syntax
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 87f21aa commit 7544d7d

File tree

1 file changed

+44
-45
lines changed

1 file changed

+44
-45
lines changed

build.gradle

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -45,57 +45,56 @@ dependencies {
4545
testImplementation 'uk.org.webcompere:system-stubs-jupiter:2.0.2'
4646
}
4747

48+
repositories {
49+
repositories {
50+
maven {
51+
// change URLs to point to your repos, e.g. http://my.org/repo
52+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
53+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
54+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
55+
credentials{
56+
username = System.getenv("MAVEN_USERNAME")
57+
password = System.getenv("MAVEN_PASSWORD")
58+
}
59+
}
60+
}
61+
}
62+
4863
publishing {
49-
publications {
50-
register("jar", MavenPublication) {
51-
from(components["java"])
52-
pom {
53-
name = 'DefectDojo Client Java'
54-
description = 'Java Client to interact with the DefectDojo API.'
55-
url = 'https://github.com/secureCodeBox/defectdojo-client-java'
56-
licenses {
57-
license {
58-
name = 'The Apache License, Version 2.0'
59-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
60-
}
64+
publications.register("jar", MavenPublication) {
65+
from components.java
66+
pom {
67+
name = 'DefectDojo Client Java'
68+
description = 'Java Client to interact with the DefectDojo API.'
69+
url = 'https://github.com/secureCodeBox/defectdojo-client-java'
70+
licenses {
71+
license {
72+
name = 'The Apache License, Version 2.0'
73+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
6174
}
62-
developers {
63-
developer {
64-
id = 'jannik.hollenbach'
65-
name = 'Jannik Hollenbach'
66-
email = 'jannik.hollenbach@iteratec.com'
67-
}
68-
developer {
69-
id = 'robert.seedorff'
70-
name = 'Robert Seedorff'
71-
email = 'robert.seedorff@iteratec.com'
72-
}
73-
developer {
74-
id = 'johannes.zahn'
75-
name = 'Johannes Zahn'
76-
email = 'johannes.zahn@iteratec.com'
77-
}
75+
}
76+
developers {
77+
developer {
78+
id = 'jannik.hollenbach'
79+
name = 'Jannik Hollenbach'
80+
email = 'jannik.hollenbach@iteratec.com'
7881
}
79-
scm {
80-
connection = 'scm:git@github.com:secureCodeBox/defectdojo-client-java.git'
81-
developerConnection = 'scm:git@github.com:secureCodeBox/defectdojo-client-java.git'
82-
url = 'https://github.com/secureCodeBox/defectdojo-client-java'
82+
developer {
83+
id = 'robert.seedorff'
84+
name = 'Robert Seedorff'
85+
email = 'robert.seedorff@iteratec.com'
8386
}
84-
}
85-
}
86-
}
87-
repositories {
88-
repositories {
89-
maven {
90-
// change URLs to point to your repos, e.g. http://my.org/repo
91-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
92-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
93-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
94-
credentials{
95-
username = System.getenv("MAVEN_USERNAME")
96-
password = System.getenv("MAVEN_PASSWORD")
87+
developer {
88+
id = 'johannes.zahn'
89+
name = 'Johannes Zahn'
90+
email = 'johannes.zahn@iteratec.com'
9791
}
9892
}
93+
scm {
94+
connection = 'scm:git@github.com:secureCodeBox/defectdojo-client-java.git'
95+
developerConnection = 'scm:git@github.com:secureCodeBox/defectdojo-client-java.git'
96+
url = 'https://github.com/secureCodeBox/defectdojo-client-java'
97+
}
9998
}
10099
}
101100
}

0 commit comments

Comments
 (0)