-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (41 loc) · 1.03 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
// #buildscript
buildscript {
repositories {
mavenCentral()
}
//non local dependencies
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.3'
}
}
plugins {
id 'java'
id 'application'
id 'idea'
id 'eclipse'
}
apply plugin: 'org.junit.platform.gradle.plugin'
archivesBaseName = "FantasyRPG"
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
compile group: 'postgresql', name: 'postgresql', version: '9.0-801.jdbc4'
}
//gradle rungui -Ppassword="['YOUR_SQL_PASSWORD']"
task rungui(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "gui.mainGui.MainFrame"
if(project.hasProperty("password")) {
args Eval.me(password)
}
}
//gradle rungui -Ppassword="['YOUR_SQL_PASSWORD']"
task runback(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "backend.sql.GameServer"
if(project.hasProperty("password")) {
args Eval.me(password)
}
}