forked from applideveloper/objc2swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (43 loc) · 1.24 KB
/
build.gradle
File metadata and controls
54 lines (43 loc) · 1.24 KB
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
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'antlr'
version = '1.0'
def packageName = 'jp.co.yahoo.objc2swift'
repositories {
mavenCentral()
}
ext {
scalaVersion = '2.11'
scalaVersionRevision = '6'
}
dependencies {
compile "org.scala-lang:scala-library:$scalaVersion.$scalaVersionRevision"
compile "org.antlr:antlr4-runtime:4.5"
compile "commons-io:commons-io:2.4"
antlr 'org.antlr:antlr4:4.5'
testCompile 'junit:junit:4.12'
testCompile 'org.scalatest:scalatest_2.11:2.2.4'
}
jar {
manifest {
attributes 'Main-Class' : packageName + '.Main'
}
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
//generateGrammarSource {
// arguments = ['-visitor', '-package', packageName + '.converter']
// outputDirectory = file("${project.buildDir}/generated-src/main/java/org/objc2swift/converter/")
//}
//
//compileJava.dependsOn generateGrammarSource
compileJava {
source = ['build/generated-src/main/java', 'src/main/java']
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
// scalaCompileOptions.deprecation = false
scalaCompileOptions.forkOptions.jvmArgs = ['-Xss20M']
}
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}