Skip to content

Commit

Permalink
Add Sandec repository to the publishing task
Browse files Browse the repository at this point in the history
  • Loading branch information
besidev committed Jul 11, 2024
1 parent baaf5c0 commit 807e543
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ version = "$JMEMORYBUDDY_VERSION"
java {
sourceCompatibility = 11
targetCompatibility = 11

withSourcesJar()
withJavadocJar()
}

dependencies {
Expand All @@ -50,7 +47,6 @@ test {
}
}


publishing {
publications {
mavenJava(MavenPublication) {
Expand All @@ -59,7 +55,6 @@ publishing {
artifactId "JMemoryBuddy"
version project.version


pom {
packaging = 'jar'
name = 'JMemoryBuddy'
Expand Down Expand Up @@ -90,11 +85,21 @@ publishing {
}
}
}
}

jar {
manifest {
attributes 'Automatic-Module-Name': "de.sandec.jmemorybuddy"
java {
withSourcesJar()
withJavadocJar()
}

repositories {
maven {
name = "artifactory"
url = "https://sandec.jfrog.io/artifactory/repo"
credentials {
username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
}
}
}
}

Expand Down

0 comments on commit 807e543

Please sign in to comment.