Skip to content

Commit

Permalink
Fixed gradle publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
faab007nl committed Oct 30, 2022
1 parent 54da98e commit 31842ee
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,23 @@ dependencies {
implementation 'com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:7.1.2'
}

shadowJar{
archiveFileName = "GradleBasePlugin-${versionNum}.jar"
shadowJar {
archiveFileName.set("${artifactId}-${versionNum}.jar")
}

publishing {
publications {
maven(MavenPublication) {
groupId
artifactId
versionNum

from components.java
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven { url 'https://repo.techscode.com/repository/maven-releases/' }
maven {
url 'https://repo.techscode.com/repository/maven-releases/'
credentials {
username = System.getenv('TECHSCODE_USERNAME')
password = System.getenv('TECHSCODE_PASSWORD')
}
}
}
}

0 comments on commit 31842ee

Please sign in to comment.