Skip to content

Commit 9ba6715

Browse files
fix: maven publishing
1 parent 88b858f commit 9ba6715

3 files changed

Lines changed: 8 additions & 23 deletions

File tree

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ tasks.named('wrapper', Wrapper).configure {
99
distributionType = Wrapper.DistributionType.BIN
1010
}
1111

12-
version = mod_version
13-
group = 'pro.mikey'
14-
1512
allprojects {
1613
apply plugin: 'idea'
1714
apply plugin: 'java-library'
1815
apply plugin: 'maven-publish'
1916

2017
version = mod_version
18+
group = 'pro.mikey.mods'
2119

2220
tasks.withType(JavaCompile).configureEach {
2321
options.encoding = 'UTF-8'
@@ -69,6 +67,13 @@ subprojects {
6967
}
7068

7169
publishing {
70+
publications {
71+
register("mavenJava" + project.name, MavenPublication) {
72+
artifactId = "advanced-xray" + (project.name !== "common" ? "-" + project.name : "")
73+
from components.java
74+
}
75+
}
76+
7277
repositories {
7378
def token = providers.environmentVariable("SAPS_TOKEN");
7479
if (token.isPresent()) {

fabric/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,3 @@ repositories {
3838
java {
3939
withSourcesJar()
4040
}
41-
42-
publishing {
43-
publications {
44-
mavenJava(MavenPublication) {
45-
groupId project.group
46-
artifactId project.base.archivesName.get()
47-
version project.version
48-
from components.java
49-
}
50-
}
51-
}

neoforge/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ repositories {
3737
}
3838
}
3939

40-
publishing {
41-
publications {
42-
mavenJava(MavenPublication) {
43-
artifactId = rootProject.base.archivesName.get()
44-
from components.java
45-
}
46-
}
47-
}
48-
4940
java {
5041
withSourcesJar()
5142
}

0 commit comments

Comments
 (0)