Help,'Cannot resolve symbol 'mavenDeployer''
Answered
I created a gradle groovy project, I am trying to develop a gradle plugin and upload it to the local maven center,
then add code to the build.gradle like this:
apply plugin: 'groovy'
apply plugin: 'maven'
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'org.codehaus.groovy:groovy:2.4.10'
compile 'com.sun.codemodel:codemodel:2.6'
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.jsoup:jsoup:1.10.2'
compile gradleApi()
compile localGroovy()
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('../repo'))
}
}
}
everything goes well except mavenDeployer, seems like the idea cannot find mavenDeployer


Why? How can I solve this problem?Is this a BUG?
By the way, I am using the Intellij IDEA 2017.1.2 Community
Please sign in to leave a comment.
build.gradle codeinsight is limited, see https://youtrack.jetbrains.com/issue/IDEA-50450. You can ignore this inspection.