plugins { id 'java' } group = 'com.its' version = '0.0.1' sourceCompatibility = '1.8' targetCompatibility = '1.8' compileJava.options.encoding = 'UTF-8' repositories { mavenCentral() } dependencies { } processResources { enabled = false } jar { enabled = true } test { useJUnitPlatform() } tasks.register('runInstallJarLibrary', Exec) { doFirst { println "its-spring library install mvn repository..." def os = org.gradle.internal.os.OperatingSystem.current() workingDir = file('.') if (os.isWindows()) { commandLine 'cmd', '/C', 'start', 'install.bat' } else { commandLine 'sh', './install.sh' } } } jar.finalizedBy runInstallJarLibrary compileJava.options.encoding = 'UTF-8' tasks.withType(JavaCompile).configureEach { options.compilerArgs << '-Xlint:unchecked' options.deprecation = true options.encoding = 'UTF-8' }