Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ export/
7za.exe
/test
.DS_Store
/tmp
/tmp
bin/
notes
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
84 changes: 53 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
id 'eclipse'
id 'idea'
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'com.gradleup.shadow' version '9.0.0-beta11'
id 'com.github.ben-manes.versions' version '0.52.0'
id 'com.gradleup.shadow' version '9.2.2'
id 'com.github.ben-manes.versions' version '0.53.0'
}

group 'net.querz'
group = 'net.querz'
compileJava.options.encoding = 'UTF-8'
application.mainClass = 'net.querz.mcaselector.Main'

Expand All @@ -27,49 +27,53 @@ idea {
}

repositories {
mavenCentral()
maven {
url 'https://jitpack.io/'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
mavenCentral()
maven {
url = 'https://jitpack.io/'
}
maven {
url = 'https://plugins.gradle.org/m2/'
}
}

dependencies {
implementation 'com.github.Querz:NBT:6bc3de6961'
implementation 'com.google.code.gson:gson:2.12.1'
implementation 'it.unimi.dsi:fastutil:8.5.15'
implementation 'org.apache.logging.log4j:log4j-api:2.24.3'
implementation 'org.apache.logging.log4j:log4j-core:2.24.3'
implementation 'org.slf4j:slf4j-simple:2.0.16'
implementation 'commons-cli:commons-cli:1.9.0'
implementation 'com.github.Querz:NBT:6bc3de6961'
implementation 'com.google.code.gson:gson:2.13.2'
implementation 'com.google.guava:guava:33.5.0-jre'
implementation 'it.unimi.dsi:fastutil:8.5.16'
implementation 'org.apache.logging.log4j:log4j-api:2.25.2'
implementation 'org.apache.logging.log4j:log4j-core:2.25.2'
implementation 'org.slf4j:slf4j-simple:2.0.17'
implementation 'commons-cli:commons-cli:1.10.0'
implementation 'me.tongfei:progressbar:0.10.1'
implementation 'org.apache.groovy:groovy-jsr223:4.0.26'
implementation 'org.fxmisc.richtext:richtextfx:0.11.4'
implementation 'org.apache.groovy:groovy-jsr223:5.0.1'
implementation 'org.fxmisc.richtext:richtextfx:0.11.6'
implementation 'org.lz4:lz4-java:1.8.0'
implementation 'org.atteo.classindex:classindex:3.13'
implementation 'org.iq80.leveldb:leveldb:0.12'
implementation 'ar.com.hjg:pngj:2.1.0'

shadow 'com.github.Querz:NBT:6bc3de6961'
shadow 'com.google.code.gson:gson:2.12.1'
shadow 'it.unimi.dsi:fastutil:8.5.15'
shadow 'org.apache.logging.log4j:log4j-api:2.24.3'
shadow 'org.apache.logging.log4j:log4j-core:2.24.3'
shadow 'org.slf4j:slf4j-simple:2.0.16'
shadow 'commons-cli:commons-cli:1.9.0'
shadow 'com.github.Querz:NBT:6bc3de6961'
shadow 'com.google.code.gson:gson:2.13.2'
shadow 'com.google.guava:guava:33.5.0-jre'
shadow 'it.unimi.dsi:fastutil:8.5.16'
shadow 'org.apache.logging.log4j:log4j-api:2.25.2'
shadow 'org.apache.logging.log4j:log4j-core:2.25.2'
shadow 'org.slf4j:slf4j-simple:2.0.17'
shadow 'commons-cli:commons-cli:1.10.0'
shadow 'me.tongfei:progressbar:0.10.1'
shadow 'org.apache.groovy:groovy-jsr223:4.0.26'
shadow 'org.fxmisc.richtext:richtextfx:0.11.4'
shadow 'org.apache.groovy:groovy-jsr223:5.0.1'
shadow 'org.fxmisc.richtext:richtextfx:0.11.6'
shadow 'org.lz4:lz4-java:1.8.0'
shadow 'org.atteo.classindex:classindex:3.13'
shadow 'org.atteo.classindex:classindex:3.13'
shadow 'org.iq80.leveldb:leveldb:0.12'
shadow 'ar.com.hjg:pngj:2.1.0'

annotationProcessor('org.atteo.classindex:classindex:3.13')
annotationProcessor('org.apache.logging.log4j:log4j-core:2.24.3')
annotationProcessor('org.apache.logging.log4j:log4j-core:2.25.2')

testImplementation 'junit:junit:4.13.2'
testImplementation 'commons-io:commons-io:2.18.0'
testImplementation 'commons-io:commons-io:2.20.0'
}

compileJava {
Expand Down Expand Up @@ -132,6 +136,24 @@ assemble.dependsOn shadowJar

// ---------------------------------------------------------------------------------------------------------------------

// Gradle Versions Plugin configuration: reject unstable candidates
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { version.toUpperCase().contains(it) }
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}

tasks.named("dependencyUpdates").configure {
checkConstraints = true
gradleReleaseChannel = 'current'
rejectVersionIf {
isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)
}
outputFormatter = 'plain'
}

// ---------------------------------------------------------------------------------------------------------------------

/**
* "Minifies" a css file by removing all comments, \n, \t and all duplicate spaces.
*
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading