-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
111 lines (92 loc) · 3.59 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
buildscript {
ext {
kotlinVersion = '1.2.61'
grettyVersion = '2.0.0'
}
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: kotlinVersion
classpath group: 'org.akhikhl.gretty', name: 'gretty', version: grettyVersion
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
mainClassName = 'com.pendorbound.openspource.OpenSpourceKt'
//defaultTasks 'run'
repositories {
jcenter()
mavenCentral()
maven {
url 'https://dl.bintray.com/ageery/maven'
}
//maven {
// url 'https://dl.bintray.com/jupnp/mvn/'
// }
}
ext {
wicketVersion = '8.0.0'
kWicketVersion = '0.0.3'
jettyVersion = '9.4.11.v20180605'
slf4jVersion = '1.7.25'
log4jVersion = '2.11.1'
}
dependencies {
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
compile group: 'org.jupnp', name: 'org.jupnp', version: '2.4.0'
compile group: 'org.apache.wicket', name: 'wicket-core', version: wicketVersion
compile group: 'org.apache.wicket', name: 'wicket-extensions', version: wicketVersion
compile group: 'org.kwicket', name: 'kwicket-core', version: kWicketVersion
compile group: 'org.kwicket', name: 'kwicket-wicket-core', version: kWicketVersion
compile group: 'org.kwicket', name: 'kwicket-wicket-extensions', version: kWicketVersion
compile group: 'org.eclipse.jetty', name: 'jetty-client', version: jettyVersion
compile group: 'org.eclipse.jetty', name: 'jetty-server', version: jettyVersion
compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: jettyVersion
compile group: 'org.eclipse.jetty', name: 'jetty-util', version: jettyVersion
compile group: 'org.eclipse.jetty', name: 'jetty-jmx', version: jettyVersion
compile group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: slf4jVersion
compile group: 'org.slf4j', name: 'jul-to-slf4j', version: slf4jVersion
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: slf4jVersion
// compile "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"
// testCompile "org.jetbrains.kotlin:kotlin-test-junit:${kotlinVersion}"
// testRuntime("org.junit.platform:junit-platform-launcher:1.2.0")
// testRuntime("org.junit.jupiter:junit-jupiter-engine:5.2.0")
// testRuntime("org.junit.vintage:junit-vintage-engine:5.2.0")
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
kotlin {
srcDir 'src/main/kotlin'
}
resources {
srcDir 'src/main/resources'
srcDir 'src/main/java'
srcDir 'src/main/kotlin'
}
}
}
// test.testClassesDir = project.tasks.compileTestKotlin.destinationDir
wrapper {
gradleVersion="4.9"
}
def debugArgs = []
if(gradle.startParameter.initScripts) {
def line = file(gradle.startParameter.initScripts[0]).readLines().findAll({x -> x ==~ /.*-agentlib:jdwp=.*/ })[0]
if(line) {
debugArgs = ((line =~ /.*'(.*)'.*/)[0][1] as String).split(' ')
}
}
gretty {
servletContainer = 'jetty9'
jvmArgs = [*debugArgs]
}