Open sergey-selivanov opened 8 years ago
Hi,
do you mean the build works fine without Gradle-properties-plugin applied ? It'd help if you were to provide a minimal build which fails, right now I can't see which GString/closure is failing.
Maybe check the properties you're injecting ? could be that one of them is conflicting with msbuild.
Hi gluck,
1) yes, build perfectly works without gradle-properties-plugin. It is sufficient to simply add "apply plugin: 'net.saliman.properties'" line to get failure in msbuild.
2) I will try to prepare minimal build but can't promise how soon. I'll use Visual Studio Community 2013, please tell if that matters.
3) As I can judge, 5 my properties are injected by that plugin: artifactory_password, artifactory_contextUrl, artifactory_user, jna.nosys, rest.apiBaseUri, - seems not suspicious.
Here is the minimal build to reproduce the issue - rename attached file to .zip Run 'gradle clean msbuild': runs OK Uncomment line 12 in build.gradle, run 'gradle clean msbuild': exception. Reproduces with gradle 2.9, 2.5.
Hi, did anyone work out what the issue was. I've just encountered this and I'm using saliman plugin for picking env property file and then trying to kick off msbuild.
Hi, saliman plugin seems to inject methods in each task ExtensionAware properties (task.ext["foo"] = closure
), this messes up this plugin which assumes these properties are to be passed down to msbuild (cf README).
Not sure if this (a bit intrusive) behavior is intended. Maybe it can be workaround on this plugin side, but the logic to decide which properties are to be passed down to msbuild would be cranky (exclude closures ? include only strings, gstrings, numbers ?).
If to add gradle-properties-plugin to the build, msbuild task fails without clear reason:
Gradle-properties-plugin is here: https://github.com/stevesaliman/gradle-properties-plugin Full build log and build.gradle:
log.txt
build.gradle.txt