Fix Maven publication.
This commit is contained in:
+8
-8
@@ -180,11 +180,14 @@ processResources {
|
|||||||
apply from: 'gradle/scripts/artifacts.gradle'
|
apply from: 'gradle/scripts/artifacts.gradle'
|
||||||
apply from: 'gradle/scripts/curseforge.gradle'
|
apply from: 'gradle/scripts/curseforge.gradle'
|
||||||
|
|
||||||
if (!version.endsWith("-SNAPSHOT")) {
|
// configure the maven publication
|
||||||
publishing {
|
publishing {
|
||||||
|
if (!version.endsWith("-SNAPSHOT")) {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
|
groupId = project.group
|
||||||
artifactId = 'appliedenergistics2-fabric'
|
artifactId = 'appliedenergistics2-fabric'
|
||||||
|
version = project.version
|
||||||
|
|
||||||
// add all the jars that should be included when publishing to maven
|
// add all the jars that should be included when publishing to maven
|
||||||
artifact(remapJar) {
|
artifact(remapJar) {
|
||||||
@@ -193,14 +196,11 @@ if (!version.endsWith("-SNAPSHOT")) {
|
|||||||
artifact(sourcesJar) {
|
artifact(sourcesJar) {
|
||||||
builtBy remapSourcesJar
|
builtBy remapSourcesJar
|
||||||
}
|
}
|
||||||
|
artifact javadocJar
|
||||||
|
artifact apiJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// configure the maven publication
|
|
||||||
publishing {
|
|
||||||
// select the repositories you want to publish to
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
credentials {
|
credentials {
|
||||||
|
|||||||
Reference in New Issue
Block a user