sk_server/gamecommon/build.gradle

40 lines
1.0 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

plugins {
id 'java'
}
group 'com.gamecommon'
version '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.googlecode.protobuf-java-format', name: 'protobuf-java-format', version: '1.2'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile("com.google.protobuf:protobuf-java:2.5.0")
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
compile project(":common")
}
jar {
baseName = 'gamecommon'
}
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>룬Ȼ<EBA3AC><C8BB><EFBFBD><EFBFBD>JAR
task taskJar(type:Jar, dependsOn: compileJava) {
from 'build/classes/main'
destinationDir = file('build/libs')
}
//ɾ<><C9BE>lib<69>е<EFBFBD>jar
task clearJars(type:Delete){
delete 'lib'
}
task copyJars(type: Copy, dependsOn:clearJars) {
from configurations.runtime
into 'lib' // Ŀ<><C4BF>λ<EFBFBD><CEBB>
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'