IntelliJ IDEA'da gradle
yenilemeyi çalıştırdığımda, ana klasörüm kaynak kök olarak ayarlandı, ancak benim gerçek kaynak kökü olan "java" işaretlenmemiş.IntelliJ'deki yenileme alanı, kaynak klasör yapısının değişmesine neden oluyor
Bunu, gradle refresh
yaptıktan sonra her seferinde el ile değiştirmeniz gerekiyor.
İlgili dikey ayarın ne olduğunu biliyor musunuz?
Yaygın bir gradle
dosya içinde olabilir mi?
Kaynak root olmak için main
klasörünü değiştirmeliyim?
build.gradle
sayfamda bunu nasıl geçersiz kılabilirim?
Benim build.gradle:
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
//
// configurations.all*.exclude(group: 'com.sun.jersey', module: 'jersey-bundle')
// configurations.all*.exclude(group: 'com.fasterxml.jackson.core', module:'jackson-databind')
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
compile 'com.google.inject:guice:4.0-beta5'
compile 'com.sun.jersey:jersey-core:1.18.3'
compile 'com.sun.jersey:jersey-client:1.18.3'
compile 'com.sun.jersey:jersey-json:1.18.3'
compile 'com.sun.jersey.contribs:jersey-apache-client:1.18.3'
compile group: 'junit', name: 'junit', version: '4.11'
compile 'com.vividsolutions:jts:1.13'
compile 'net.sf.opencsv:opencsv:2.3'
compile 'com.googlecode.json-simple:json-simple:1.1'
compile 'com.google.guava:guava:18.0'
//testCompile group: 'junit', name: 'junit', version: '4.11'
}
sourceSets {
main {
java {
srcDirs = ['src/main']
}
}
test {
java {
srcDirs = ['src/main']
}
}
}
test {
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
task run_BaselineGenerator(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "com.waze.routing.automation.runners.BaselineGenerator"
}
build.gradle dosyanızı gösterme. – fge