Gradle Java plugin library not found
I had a problem lately while compiling a java library with Gradle 4.0.1 (this problem also happened with 3.5) on Windows with IntelliJ using the java-library plugin. Here is a snippet of my build script:
buildscript{
repositories{
jcenter();
}
dependencies{
classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.5'
classpath 'org.akhikhl.gretty:gretty:+'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
}
}
configurations{
taglibs{ transitive = false}
enhance
}
repositories {
mavenCentral()
}
apply plugin: 'java-library'
apply plugin: 'war'
apply plugin: 'com.bmuschko.tomcat'
sourceCompatibility = 1.7
and this is what happens when I try to build:
STRICTLY FAILURE
Total time: 0.115 seconds
Plugin with id 'java-library' not found.
This worked until recently.
+3
source to share