当我尝试导入任何类时,intellij尝试导入main.java作为前缀。这并不是要表明,因为srcs root是src / main / java
我的build.gradle看起来像这样。
group = 'rsam'
version = '1.00'
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.21'
testCompile 'junit:junit:4.12'
// https://mvnrepository.com/artifact/org.apache.commons/commons-compress
compile group: 'org.apache.commons', name: 'commons-compress', version: '1.13'
}
sourceSets {
main.java.srcDirs = ['src/main/java', 'src/test/java']
main.resources.srcDirs = ['resources']
}