1- import org.apache.tools.ant.filters.ReplaceTokens
21
32buildscript {
43 repositories {
54 mavenCentral()
65 gradlePluginPortal()
76 }
87
9- dependencies {
10- classpath ' com.github.jengelman.gradle.plugins:shadow:6.1.0'
11- }
8+
9+ /* dependencies {
10+ classpath 'com.github.jengelman.gradle.plugins:shadow:8.0.0'
11+ }*/
12+
1213}
1314
15+
1416plugins {
1517 id ' java'
16- id ' com.github.johnrengelman.shadow' version ' 6.1.0'
17- id ' maven-publish'
18+ id ' com.github.johnrengelman.shadow' version ' 8.1.1'
1819}
1920
2021group ' me.realized'
2122version ' 3.2.8'
2223
23- compileJava {
24- options. encoding = ' UTF-8'
25- sourceCompatibility = JavaVersion . VERSION_1_8
26- targetCompatibility = JavaVersion . VERSION_1_8
27- }
24+ compileJava. options. encoding = ' UTF-8'
2825
2926processResources {
3027 def group = project. group. toString() + " ." + project. name. toLowerCase() + " .shaded"
3128
32- from(sourceSets. main. resources. srcDirs) {
33- include ' **/* .yml'
29+ /* from(sourceSets.main.resources.srcDirs) {
30+ include '**.yml'
3431 filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group])
35- }
32+ }*/
3633}
3734
3835repositories {
@@ -47,60 +44,64 @@ repositories {
4744 name ' bungeecord-repo'
4845 url ' https://oss.sonatype.org/content/repositories/snapshots'
4946 }
50-
51- maven {
47+ maven { url ' https://jitpack.io ' }
48+ /* maven {
5249 name 'mvdw-repo'
5350 url 'http://repo.mvdw-software.be/content/groups/public/'
54- }
51+ }*/
5552
5653 maven {
57- name ' clip-repo'
58- url ' http://repo.extendedclip.com/content/repositories/placeholderapi/'
54+ url = ' https://repo.extendedclip.com/content/repositories/placeholderapi/'
5955 }
6056
6157 maven {
6258 name ' codemc-repo'
6359 url ' https://repo.codemc.io/repository/maven-public/'
6460 }
6561
62+
6663 maven {
6764 name ' inventive-repo'
6865 url ' https://repo.inventivetalent.org/content/groups/public/'
6966 }
7067
68+
7169 flatDir {
7270 dirs " $rootDir /libs/"
7371 }
7472}
7573
7674dependencies {
77- implementation ' org.projectlombok:lombok:1.18.22'
78- implementation ' org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT'
79- implementation (name : ' MVdWPlaceholderAPI-3.1.1' ) {
75+ compileOnly ' org.projectlombok:lombok:1.18.24'
76+ annotationProcessor ' org.projectlombok:lombok:1.18.24'
77+
78+ compileOnly ' org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT'
79+ compileOnly (name : ' MVdWPlaceholderAPI-3.1.1' ) {
8080 transitive = false
8181 }
82- implementation name : ' Vault-1.6.7 '
83- implementation ' me.clip:placeholderapi:2.10.9'
82+ compileOnly " com.github.MilkBowl:VaultAPI:1.7 "
83+ compileOnly ' me.clip:placeholderapi:2.10.9'
8484
8585 // shaded dependencies
86- implementation ' redis.clients:jedis:3. 5.1'
87- implementation ' org.apache.commons:commons-pool2:2.4.2 '
88- implementation ' com.zaxxer:HikariCP:4.0.2 '
89- implementation ' org.slf4j:slf4j-nop:1.7.32 '
90- implementation ' org.bstats:bstats-bukkit:1.7 '
86+ implementation ' redis.clients:jedis:5.1.2 '
87+ implementation ' org.apache.commons:commons-pool2:2.12.0 '
88+ implementation ' com.zaxxer:HikariCP:4.0.3 '
89+ implementation ' org.slf4j:slf4j-nop:2.0.13 '
90+ implementation ' org.bstats:bstats-bukkit:3.0.2 '
9191}
9292
9393clean. doFirst {
9494 delete " $rootDir /out/"
9595}
9696
9797shadowJar {
98- duplicatesStrategy = DuplicatesStrategy . EXCLUDE
99- destinationDirectory = file(" $rootDir /out/" )
100- archiveBaseName. set(' TokenManager' )
101- archiveClassifier. set(' ' )
98+ // duplicatesStrategy = DuplicatesStrategy.EXCLUDE
99+ setDestinationDirectory(file(" $rootDir /out/" ))
100+ // destinationDir = file("$rootDir/out/")
102101 sourceCompatibility = JavaVersion . VERSION_1_8
103102 targetCompatibility = JavaVersion . VERSION_1_8
103+ // baseName = 'TokenManager'
104+ // classifier = null
104105
105106 dependencies {
106107 include(dependency(' redis.clients:.*' ))
@@ -119,18 +120,4 @@ shadowJar {
119120 relocate ' org.bstats' , group + ' bstats'
120121}
121122
122- build. dependsOn(shadowJar)
123-
124- publishing {
125- publications {
126- mavenJava(MavenPublication ) {
127- from components. java
128- artifact shadowJar // Ensure the shadow jar is included in the publication
129- }
130- }
131- repositories {
132- maven {
133- url = uri(" $buildDir /repo" )
134- }
135- }
136- }
123+ build. dependsOn(shadowJar)
0 commit comments