Reputation: 373
I'm having an issue as of late when compiling a java library with Gradle 4.0.1 (this issue was happening with 3.5 as well) on Windows with IntelliJ using the 'java-library' plugin. Here is a snipped 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 here is what happens when I try to build:
BUILD FAILED
Total time: 0.115 secs
Plugin with id 'java-library' not found.
This was working fine until recently.
Upvotes: 4
Views: 6825
Reputation: 3002
Make sure that you switched to Gradle 4.0.1 in the Intellij IDEA preferences.
java-library
plugin was not available for Gradle 3.5
Upvotes: 4