buildscript { repositories { jcenter() maven { url 'https://plugins.gradle.org/m2/' } } dependencies { classpath 'org.tukaani:xz:1.8' classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.15.0' } } group 'org.jackhuang' version '3.0' subprojects { apply plugin: 'java' apply plugin: 'idea' apply plugin: 'com.github.hierynomus.license' 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' compileOnly group: 'org.jetbrains', name: 'annotations', version: '16.0.3' testCompile group: 'junit', name: 'junit', version: '4.12' } license { header rootProject.file('license-header.txt') strictCheck true ext.year = Calendar.getInstance().get(Calendar.YEAR) mapping { java='SLASHSTAR_STYLE' } } } defaultTasks 'clean', 'build'