Test changes to publication
This commit is contained in:
parent
73e0dc4f11
commit
18619334bd
1 changed files with 11 additions and 3 deletions
14
build.gradle
14
build.gradle
|
@ -19,7 +19,6 @@ archivesBaseName = "EventsBus"
|
|||
|
||||
java {
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
def determinePatchVersion = {
|
||||
|
@ -53,12 +52,21 @@ dependencies {
|
|||
|
||||
def MAVEN_PASSWORD_PROPERTY = "AriasCreationsMavenPassword"
|
||||
|
||||
task sourcesJar (type: Jar) {
|
||||
archiveClassifier = "sources"
|
||||
from sourceSets.main.allJava
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
artifact sourcesJar
|
||||
artifact jar
|
||||
artifact (sourcesJar) {
|
||||
classifier = "sources"
|
||||
}
|
||||
artifact (jar) {
|
||||
classifier = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
|
|
Loading…
Reference in a new issue