mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-13 17:46:58 +08:00
60 lines
2.0 KiB
Groovy
60 lines
2.0 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
maven { url 'https://plugins.gradle.org/m2/' }
|
|
}
|
|
}
|
|
|
|
group 'org.jackhuang'
|
|
version '3.0'
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'maven-publish'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
compileJava.options.encoding = "UTF-8"
|
|
compileTestJava.options.encoding = "UTF-8"
|
|
|
|
dependencies {
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
|
|
compile group: 'org.tukaani', name: 'xz', version: '1.8'
|
|
compile group: 'org.hildan.fxgson', name: 'fx-gson', version: '3.1.0'
|
|
compile group: 'org.jenkins-ci', name: 'constant-pool-scanner', version: '1.2'
|
|
compile group: 'com.github.steveice10', name: 'opennbt', version: '1.1'
|
|
compile group: 'com.nqzero', name: 'permit-reflect', version: '0.3'
|
|
compileOnly group: 'org.jetbrains', name: 'annotations', version: '16.0.3'
|
|
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-base', version: '15', classifier: 'win'
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-controls', version: '15', classifier: 'win'
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-fxml', version: '15', classifier: 'win'
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-graphics', version: '15', classifier: 'win'
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-media', version: '15', classifier: 'win'
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-swing', version: '15', classifier: 'win'
|
|
// compileOnly group: 'org.openjfx', name: 'javafx-web', version: '15', classifier: 'win'
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
repositories {
|
|
mavenLocal()
|
|
}
|
|
}
|
|
}
|
|
|
|
defaultTasks 'clean', 'build'
|