11plugins {
22 id ' java'
3- id ' com.gradleup.shadow' version ' 8.3.6'
3+ id ' com.gradleup.shadow' version ' 8.3.6' // for shadowing
44 id ' io.freefair.lombok' version ' 8.10.2'
5- id ' maven-publish'
65}
76
87group = ' com.github.server-utilities'
98version = ' 1.0.0'
109
10+ java. sourceCompatibility = JavaVersion . VERSION_11
11+ java. targetCompatibility = JavaVersion . VERSION_11
12+
1113repositories {
1214 mavenCentral()
1315 mavenLocal()
@@ -26,16 +28,24 @@ configurations {
2628}
2729
2830dependencies {
29- implementation " me.nobeld:SimplixStorage:3.3.0-beta.3"
31+ // implementation 'me.nobeld:SimplixStorage:3.3.0-beta.3'
32+ implementation ' com.github.DragonFixes:SimplixStorage:master-SNAPSHOT'
33+ shadow ' com.github.DragonFixes:SimplixStorage:master-SNAPSHOT'
34+ implementation ' org.jetbrains:annotations:24.0.1'
35+ shadow ' org.jetbrains:annotations:24.0.1'
3036 implementation ' mysql:mysql-connector-java:8.0.33'
37+ shadow ' mysql:mysql-connector-java:8.0.33'
3138 implementation ' org.xerial:sqlite-jdbc:3.46.1.0'
39+ shadow ' org.xerial:sqlite-jdbc:3.46.1.0'
3240 implementation ' com.zaxxer:HikariCP:5.1.0'
41+ shadow ' com.zaxxer:HikariCP:5.1.0'
3342 implementation ' net.objecthunter:exp4j:0.4.8'
43+ shadow ' net.objecthunter:exp4j:0.4.8'
3444 implementation ' com.google.re2j:re2j:1.7'
45+ shadow ' com.google.re2j:re2j:1.7'
3546}
3647
3748shadowJar {
38- configurations = [project. configurations. implementation, project. configurations. shadow]
3949 Map<String , String > relocations = [
4050 ' de.leonhard' : ' gg.drak.thebase.lib.leonhard' ,
4151 ' com.mysql' : ' gg.drak.thebase.lib.mysql' ,
@@ -63,28 +73,8 @@ shadowJar {
6373 archiveFileName = " ${ project.name} -${ project.version} .jar"
6474}
6575
66- tasks. register(' deploy' , Copy ) {
67- def deployDir = file(System . getenv(' DEPLOY_DIR' ) ?: " $rootDir /deploy" )
68- from shadowJar. archiveFile
69- into deployDir
70-
71- doFirst {
72- println " Deploying to: $deployDir "
73- deployDir. mkdirs()
74- println " Generated JAR file: ${ shadowJar.archiveFile.get()} "
75- }
76- }
77-
78- tasks. named(' deploy' ). configure {
79- dependsOn ' shadowJar' , ' sourcesJar' , ' javadocJar' , ' jar'
80- }
81-
82- publishing {
83- publications {
84- maven(MavenPublication ) {
85- from components. java
86- }
87- }
76+ artifacts {
77+ archives shadowJar
8878}
8979
9080java {
0 commit comments