-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
132 lines (109 loc) · 4.05 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
apply plugin: 'application'
apply plugin: 'groovy'
mainClassName = "com.egangotri.transliteratorAsSwing.TransliteratorJFrame"
//applicationDefaultJvmArgs = ["-Dwebdriver.chrome.driver=${System.getProperty('user.home')}/chromedriver/chromedriver.exe"]
repositories {
mavenCentral()
maven {
url "http://repo.jenkins-ci.org/releases"
}
}
compileJava.options.encoding = 'UTF-8'
compileGroovy.options.encoding = 'UTF-8'
sourceSets {
main {
groovy {
srcDirs = ['src/groovy', 'src/java']
}
resources {
srcDirs = ['resources']
}
}
test {
groovy {
srcDirs = ['test']
}
}
}
task transliterator(dependsOn: 'classes', type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "com.egangotri.transliteratorAsSwing.TransliteratorJFrame"
//jvmArgs = applicationDefaultJvmArgs
args = []
}
task console_transliterator(dependsOn: 'classes', type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "com.egangotri.util.TransliteratorUtil"
//jvmArgs = applicationDefaultJvmArgs
args = ["C:\\tmp\\TantraChintamani.txt"]
}
task sandhi(dependsOn: 'classes', type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "com.egangotri.sandhi.SandhiJFrame"
//jvmArgs = applicationDefaultJvmArgs
args = []
}
def String mainClass = ""
def String jarSuffix = ""
task fatJarTrans(type: Jar) {
baseName = project.name + '-transliterator'
from { (configurations.compile + configurations.runtime).collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes('Implementation-Title': 'eGangotri Programming Tools', 'Implementation-Version': "", 'Main-Class': mainClassName)
}
}
task fatJarSandhi(type:Jar) {
baseName = project.name + '-sandhi'
from { (configurations.compile + configurations.runtime).collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes 'Implementation-Title': 'eGangotri Programming Tools', 'Implementation-Version': "", 'Main-Class': 'com.egangotri.sandhi.SandhiJFrame'
}
}
task fatJarDictionary(type:Jar) {
baseName = project.name + '-dictionary'
from { (configurations.compile + configurations.runtime).collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes 'Implementation-Title': 'eGangotri Programming Tools', 'Implementation-Version': "", 'Main-Class': 'com.egangotri.monierWilliams.dict.MWSktEngDictionary'
}
}
task fatJar(dependsOn:[fatJarTrans, fatJarSandhi,fatJarDictionary]){
doLast {
println 'jarring'
copy {
from "build/libs/"
into 'latestJarForUse'
include '*.jar'
}
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile 'org.codehaus.gpars:gpars:1.2.1'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
//compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.21'
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.5'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.5'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.5'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'commons-logging:commons-logging:1.2'
compile 'log4j:log4j:1.2.11'
compile 'javax.mail:mail:1.4'
compile 'cglib:cglib-nodep:2.1_3'
compile 'commons-collections:commons-collections:3.1'
compile 'commons-dbcp:commons-dbcp:1.4'
compile 'commons-pool:commons-pool:1.6'
compile 'org.apache.derby:derby:10.12.1.1'
compile 'dom4j:dom4j:1.6.1'
compile 'org.springframework:spring-hibernate3:2.0.8'
compile 'jdom:jdom:1.1'
compile 'javax.transaction:jta:1.1'
compile 'junit:junit:4.12'
compile 'log4j:log4j:1.2.11'
compile 'mysql:mysql-connector-java:5.1.39'
compile 'org.springframework:spring-context:2.0'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'junit:junit:4.12'
}