Closed ieugen closed 6 years ago
If I remove the publication I can build the project.
Thanks for reporting this. I have seen this but I am not sure if this is more related with project structure or plugin itself. I will investigate this and get it resolved before releasing 4.0.0. Greetings
Ok, understood. The problem is with accessing all possible project properties. Same issue as discussed here: https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/158 Trying to apply same fix as here: https://github.com/researchgate/gradle-release/commit/4d31ad7095e10d4f55d43bb376bcc257be32de36
Also if you use newer plugin DSL and move 'maven-publish' to the bottom of used plugin list it will work also.
build.gradle
plugins {
id 'distribution'
id 'idea'
id 'eclipse'
id 'com.cognifide.aem.package'
id 'maven-publish'
id "com.moowork.node" version "1.2.0"
id 'org.ajoberstar.grgit' version '2.2.0'
id 'org.ajoberstar.reckon' version '0.6.0'
}
publishing {
repositories {
mavenLocal()
}
publications {
binaryDist(MavenPublication) {
artifact distTar {
groupId 'REDACTED'
artifactId 'REDACTED'
}
}
}
}
settings.gradle
pluginManagement {
repositories {
mavenLocal()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://dl.bintray.com/cognifide/maven-public" }
maven { url "https://dl.bintray.com/neva-dev/maven-public" }
}
resolutionStrategy {
eachPlugin {
if (requested.id.namespace == 'com.cognifide.aem') {
useModule('com.cognifide.gradle:aem-plugin:4.0.0-beta')
}
}
}
}
ok, I can confirm that fix seems to work. Releasing beta2, thank you :) Please confirm after retesting.
fixed and released in 4.0.0-beta2
Hi, Applying the plugin to an existing gradle project I get the fallowing error:
I'm using gradle 4.7 and aem-plugin 4.0.0-beta. My gradle file looks like this: