Skip to content

Commit 807e543

Browse files
committed
Add Sandec repository to the publishing task
1 parent baaf5c0 commit 807e543

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

build.gradle

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ version = "$JMEMORYBUDDY_VERSION"
2424
java {
2525
sourceCompatibility = 11
2626
targetCompatibility = 11
27-
28-
withSourcesJar()
29-
withJavadocJar()
3027
}
3128

3229
dependencies {
@@ -50,7 +47,6 @@ test {
5047
}
5148
}
5249

53-
5450
publishing {
5551
publications {
5652
mavenJava(MavenPublication) {
@@ -59,7 +55,6 @@ publishing {
5955
artifactId "JMemoryBuddy"
6056
version project.version
6157

62-
6358
pom {
6459
packaging = 'jar'
6560
name = 'JMemoryBuddy'
@@ -90,11 +85,21 @@ publishing {
9085
}
9186
}
9287
}
93-
}
9488

95-
jar {
96-
manifest {
97-
attributes 'Automatic-Module-Name': "de.sandec.jmemorybuddy"
89+
java {
90+
withSourcesJar()
91+
withJavadocJar()
92+
}
93+
94+
repositories {
95+
maven {
96+
name = "artifactory"
97+
url = "https://sandec.jfrog.io/artifactory/repo"
98+
credentials {
99+
username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
100+
password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
101+
}
102+
}
98103
}
99104
}
100105

0 commit comments

Comments
 (0)