-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (89 loc) · 3.62 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
ext.kotlinVersion = '1.3.20'
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = '1.0'
ext {
appName = "adv"
gdxVersion = '1.9.8'
commonsLangVersion = '3.0'
jacksonVersion = '2.9.4'
logbackVersion = '1.1.3'
guavaVersion = '19.0'
visuiVersion = '1.3.0'
artemisVersion = '2.1.0'
artemisContribVersion = '1.2.1'
mockitoVersion = '1.+'
junitVersion = '4.12'
checkstyleVersion = '7.6'
sevntuCheckstyleVersion = '1.23.1'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "http://sevntu-checkstyle.github.io/sevntu.checkstyle/maven2/" }
}
}
project(":desktop") {
apply plugin: "kotlin"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
}
project(":core") {
apply plugin: "kotlin"
apply plugin: 'checkstyle'
checkstyle {
toolVersion = checkstyleVersion
configFile = new File(rootDir, 'adv_checkstyle.xml')
configProperties = [config_loc: rootDir]
showViolations = true
checkstyleMain.source = "src/main/java"
checkstyleTest.source = "src/test/java"
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
compile "ch.qos.logback:logback-classic:$logbackVersion"
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
compile "net.onedaybeard.artemis:artemis-odb:$artemisVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-eventbus:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-plugin-profiler:$artemisContribVersion"
compile "com.google.guava:guava:$guavaVersion"
compile "org.apache.commons:commons-lang3:$commonsLangVersion"
compile "org.apache.commons:commons-csv:1.3"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion"
compile "com.kotcrab.vis:vis-ui:$visuiVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
testCompile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
testCompile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
testCompile "org.mockito:mockito-core:$mockitoVersion"
checkstyle "com.github.sevntu.checkstyle:sevntu-checks:$sevntuCheckstyleVersion"
checkstyle "com.github.sevntu.checkstyle:sevntu-checkstyle-maven-plugin:$sevntuCheckstyleVersion"
}
}
tasks.eclipse.doLast {
delete ".project"
}