Skip to content

Commit

Permalink
remove unnecessary core modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hakan-krgn committed Nov 2, 2023
1 parent f6bf83b commit 17ce1bd
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 45 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ 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
11 changes: 0 additions & 11 deletions hCore-bukkit/core/build.gradle → hCore-bukkit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,3 @@ tasks.compileJava.dependsOn(
':hCore-bukkit:nms:v1_20_R2:jar',
':hCore-bukkit:nms:v1_20_R2:shadowJar',
)

publishing {
publications {
maven(MavenPublication) {
groupId = 'com.hakan.hcore'
artifactId = 'bukkit-core'
version = project.version
from components.java
}
}
}
11 changes: 5 additions & 6 deletions hCore-bukkit/plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
dependencies {
annotationProcessor project(':hCore-bukkit:api')

implementation project(':hCore-bukkit')
implementation project(':hCore-bukkit:api')
implementation project(':hCore-bukkit:core')
annotationProcessor project(':hCore-bukkit:api')

compileOnly 'org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT'
}

tasks.compileJava.dependsOn(
':hCore-bukkit:jar',
':hCore-bukkit:shadowJar',

':hCore-bukkit:api:jar',
':hCore-bukkit:api:shadowJar',

':hCore-bukkit:core:jar',
':hCore-bukkit:core:shadowJar',
)
9 changes: 9 additions & 0 deletions hCore-bungee/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies {
implementation project(':hCore-bungee:api')
annotationProcessor project(':hCore-bungee:api')
}

tasks.compileJava.dependsOn(
':hCore-bungee:api:jar',
':hCore-bungee:api:shadowJar',
)
20 changes: 0 additions & 20 deletions hCore-bungee/core/build.gradle

This file was deleted.

11 changes: 5 additions & 6 deletions hCore-bungee/plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
dependencies {
annotationProcessor project(':hCore-bungee:api')

implementation project(':hCore-bungee')
implementation project(':hCore-bungee:api')
implementation project(':hCore-bungee:core')
annotationProcessor project(':hCore-bungee:api')

compileOnly 'net.md-5:bungeecord-api:1.19-R0.1-SNAPSHOT'
}

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

':hCore-bungee:api:jar',
':hCore-bungee:api:shadowJar',

':hCore-bungee:core:jar',
':hCore-bungee:core:shadowJar',
)
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rootProject.name = 'hCore'

include 'hCore-bukkit'
include 'hCore-bukkit:api'
include 'hCore-bukkit:core'
include 'hCore-bukkit:plugin'
include 'hCore-bukkit:nms:v1_8_R3'
include 'hCore-bukkit:nms:v1_9_R1'
Expand All @@ -26,6 +26,6 @@ include 'hCore-bukkit:nms:v1_19_R3'
include 'hCore-bukkit:nms:v1_20_R1'
include 'hCore-bukkit:nms:v1_20_R2'

include 'hCore-bungee'
include 'hCore-bungee:api'
include 'hCore-bungee:core'
include 'hCore-bungee:plugin'

0 comments on commit 17ce1bd

Please sign in to comment.