I am currently working on a build.xml file and I also have a Java file. But I am not sure what types of dependencies I would have to add to make the gradle file and java file work together.
gradle script
import org.apache.tools.ant.filters.FixCrLfFilter
import org.apache.tools.ant.filters.ReplaceTokens
import java.text.SimpleDateFormat
import java.util.Date
apply plugin: net.saliman.gradle.plugin.cobertura.CoberturaPlugin
apply plugin: 'java'
version = 1.0
apply plugin: 'war'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.3.1'
}
}
repositories {
mavenCentral()
}
configurations {
junitAnt
//antJwsc
//jwsc
}
dependencies {
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'org.slf4j:slf4j-log4j12:1.7.5'
//antJwsc ''
//jwsc ''
//jwsc ''
junitAnt 'junit:junit:4.8.2'
junitAnt('org.apache.ant:ant-junit:1.9.2') {
transitive = false
}
junitAnt('org.apache.ant:ant-junit4:1.9.2') {
transitive = false
}
}
/*
sourceSets {
main {
java { srcDir 'src' }
resources { srcDir 'src' }
resources { srcDir 'WebContent/WEB-INF/lib' }
}
test {
resources { srcDir 'test' }
}
}
*/