/
build.gradle
47 lines (38 loc) · 1.04 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath 'gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6'
}
}
apply plugin: 'application'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.github.sherter.google-java-format'
libsDirName = 'lib' // simple workaround for error in startScripts task
mainClassName = 'edu.luc.cs271.linkedstack.ReverseLines' // TODO change this setting to match your main class
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}
repositories {
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all"
}
tasks.withType(JavaExec) {
jvmArgs << "-enableassertions"
}
run {
standardInput = System.in
standardOutput = System.out
}
googleJavaFormat {
toolVersion = '1.4'
}