-
Notifications
You must be signed in to change notification settings - Fork 102
/
build.gradle
151 lines (118 loc) · 3.61 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.21' apply(false)
}
apply from: 'gradle/properties.gradle'
apply from: 'gradle/wrapper.gradle'
allprojects {
apply plugin: 'idea'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply from: "$rootDir/gradle/kotlin.gradle"
group = 'rsmod'
version = '0.0.4'
repositories {
mavenLocal()
jcenter()
maven { url "https://repo.maven.apache.org/maven2" }
maven { url 'https://jitpack.io' }
}
configurations {
ktlint
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.15.0"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
compile "io.github.microutils:kotlin-logging:$kloggingVersion"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$yamlVersion"
implementation "org.mindrot:jbcrypt:$bcryptVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "com.github.runelite.runelite:cache:$runeliteVersion"
implementation "io.netty:netty-all:$nettyVersion"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
}
idea {
module {
inheritOutputDirs = false
outputDir = file("${project.buildDir}/classes/kotlin/main")
testOutputDir = file("${project.buildDir}/classes/kotlin/test")
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = jvmVersion
}
}
}
task packageServer(type: Zip) {
archiveFileName = "rsmod.zip"
destinationDirectory = file('.')
from('./') {
include 'gradlew'
include 'gradlew.bat'
include 'build.gradle'
include 'settings.gradle'
include 'LICENSE'
include 'README.md'
include 'dev-settings.example.yml'
rename 'dev-settings.example.yml', 'dev-settings.yml'
include 'first-launch-template'
rename 'first-launch-template', 'first-launch'
}
from ('gradle/') {
into ('gradle')
}
from('data/') {
into 'data'
exclude 'cache'
exclude 'rsa'
exclude 'saves'
exclude 'xteas'
}
from('game/') {
into 'game'
exclude 'build'
exclude 'out'
exclude 'plugins'
exclude 'src/main/java'
exclude 'src/test/java'
}
from('game/plugins') {
into 'game/plugins'
include 'src/main/kotlin/gg/rsmod/plugins/api/**'
include 'src/main/kotlin/gg/rsmod/plugins/content/osrs.kts'
include 'src/main/kotlin/gg/rsmod/plugins/service/**'
}
from('net/') {
into 'net'
exclude 'build'
exclude 'out'
exclude 'src/main/java'
exclude 'src/test/java'
}
from('tools/') {
into 'tools'
exclude 'build'
exclude 'out'
exclude 'src/main/java'
exclude 'src/test/java'
}
from('util/') {
into 'util'
exclude 'build'
exclude 'out'
exclude 'src/main/java'
exclude 'src/test/java'
}
}
task packageLibs(type: Zip) {
archiveFileName = "rsmod-libs.zip"
destinationDirectory = file('.')
from('game/build/libs/') {
rename "game-${project.version}.jar", "game.jar"
}
from('game/plugins/build/libs/') {
rename "plugins-${project.version}.jar", "plugins.jar"
}
}