2018-12-27 17:54:23 +08:00
|
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group 'com.ljsd'
|
|
|
|
|
version '1.0.0-SNAPSHOT'
|
|
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
|
|
repositories {
|
2023-01-09 16:02:39 +08:00
|
|
|
|
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
|
2018-12-27 17:54:23 +08:00
|
|
|
|
mavenLocal()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-05 15:58:53 +08:00
|
|
|
|
jar {
|
|
|
|
|
baseName = 'serverlogic'
|
|
|
|
|
version = '1.0.0'
|
|
|
|
|
manifest {
|
|
|
|
|
attributes 'Main-Class': 'com.ljsd.GameApplication'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-27 17:54:23 +08:00
|
|
|
|
dependencies {
|
|
|
|
|
compile project(":netty")
|
|
|
|
|
compile project(":hotfix")
|
2019-01-07 10:00:52 +08:00
|
|
|
|
compile project(":common")
|
2019-10-11 16:32:20 +08:00
|
|
|
|
compile project(":gamecommon")
|
|
|
|
|
compile project(":tablemanager")
|
2019-11-27 10:33:27 +08:00
|
|
|
|
compile project(":fightmanager")
|
2019-07-05 15:58:53 +08:00
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
2018-12-27 17:54:23 +08:00
|
|
|
|
compile("org.javassist:javassist:3.18.2-GA")
|
|
|
|
|
compile("org.springframework.boot:spring-boot:1.5.9.RELEASE")
|
|
|
|
|
compile("org.springframework.boot:spring-boot-starter-test:1.5.9.RELEASE")
|
|
|
|
|
compile("org.springframework.boot:spring-boot-starter-data-redis:1.5.9.RELEASE")
|
2019-01-29 14:16:15 +08:00
|
|
|
|
compile("io.netty:netty-all:4.1.6.Final")
|
2018-12-27 17:54:23 +08:00
|
|
|
|
compile("com.google.protobuf:protobuf-java:2.5.0")
|
|
|
|
|
compile("com.fasterxml.jackson.core:jackson-core:2.3.1")
|
|
|
|
|
compile("com.fasterxml.jackson.core:jackson-databind:2.3.3")
|
2019-03-20 19:01:18 +08:00
|
|
|
|
compile group: 'com.googlecode.protobuf-java-format', name: 'protobuf-java-format', version: '1.2'
|
2019-01-17 15:08:52 +08:00
|
|
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '2.2.4'
|
2020-07-06 18:13:57 +08:00
|
|
|
|
compile group: 'cn.thinkingdata', name: 'thinkingdatasdk', version: '1.5.1'
|
2019-07-03 19:15:54 +08:00
|
|
|
|
compile("org.apache.thrift:libthrift:0.9.2")
|
2022-06-15 09:38:08 +08:00
|
|
|
|
compile("com.alibaba:fastjson:1.2.83")
|
2023-03-21 11:34:17 +08:00
|
|
|
|
compile("org.apache.lucene:lucene-core:4.0.0")
|
|
|
|
|
compile("org.apache.commons:commons-lang3:3.12.0")
|
2019-07-04 11:33:18 +08:00
|
|
|
|
compile("org.apache.httpcomponents:httpclient:4.5.3")
|
2019-01-09 09:57:46 +08:00
|
|
|
|
compile files("${System.properties['java.home']}/../lib/tools.jar")
|
2018-12-27 17:54:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 18:55:33 +08:00
|
|
|
|
//依赖编译,然后打包JAR
|
|
|
|
|
task taskJar(type:Jar, dependsOn: compileJava) {
|
|
|
|
|
from 'build/classes/main'
|
|
|
|
|
destinationDir = file('build/libs')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除lib中的jar
|
|
|
|
|
task clearJars(type:Delete){
|
2019-01-23 10:02:41 +08:00
|
|
|
|
delete 'lib'
|
2019-01-22 18:55:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
task copyJars(type: Copy, dependsOn:clearJars) {
|
|
|
|
|
from configurations.runtime
|
2019-01-23 10:02:41 +08:00
|
|
|
|
into 'lib' // 目标位置
|
2018-12-27 17:54:23 +08:00
|
|
|
|
}
|