Skip to content

Commit

Permalink
fix maven publishing system
Browse files Browse the repository at this point in the history
  • Loading branch information
hakan-krgn committed Dec 28, 2023
1 parent 9c4f206 commit 3f23f38
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 11 deletions.
11 changes: 0 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ subprojects {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}

publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
}

/*
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
11 changes: 11 additions & 0 deletions hCore-bukkit/api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
dependencies {
compileOnly 'org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT'
}

publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name + '-bukkit'
version = project.version
from components.java
}
}
}
11 changes: 11 additions & 0 deletions hCore-bukkit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ dependencies {
implementation project(':hCore-bukkit:nms:v1_20_R3')
}

publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
}

tasks.compileJava.dependsOn(
':hCore-bukkit:api:jar',
':hCore-bukkit:api:shadowJar',
Expand Down
13 changes: 13 additions & 0 deletions hCore-bukkit/nms/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
subprojects {
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name + '-bukkit'
version = project.version
from components.java
}
}
}
}

tasks.register('cleanup', Delete) {
delete 'build'
}
Expand Down
11 changes: 11 additions & 0 deletions hCore-bungee/api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@ dependencies {
implementation 'com.google.code.findbugs:jsr305:3.0.2'
compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT'
}

publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name + '-bungee'
version = project.version
from components.java
}
}
}
12 changes: 12 additions & 0 deletions hCore-bungee/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ dependencies {
annotationProcessor project(':hCore-bungee:api')
}

publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
}

tasks.compileJava.dependsOn(
':hCore-bungee:api:jar',
':hCore-bungee:api:shadowJar',
)

0 comments on commit 3f23f38

Please sign in to comment.