Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

project.name = "xx" cannot be assigned #742

Closed
StefMa opened this issue Mar 5, 2018 · 5 comments
Closed

project.name = "xx" cannot be assigned #742

StefMa opened this issue Mar 5, 2018 · 5 comments

Comments

@StefMa
Copy link
Contributor

StefMa commented Mar 5, 2018

Expected Behavior

rootProject.name = "xx" should compile in settings.gradle.kts

Current Behavior

I can't change the project name:
bildschirmfoto 2018-03-05 um 14 51 41

Context

I've just created a new Gradle/Kotlin project in IntelliJ.
The default groovy settings.gradle have the autogenerated code

rootProject.name = "Gloc"

If i change this file to settings.gradle.kts it says the issue above...

Steps to Reproduce (for bugs)

See above ☝️

Maybe this is similar to #712
But I can't find a rootProject.setName("xx") :/

@tbroyer
Copy link

tbroyer commented Mar 5, 2018

Are you sure it's not #685?

@StefMa
Copy link
Contributor Author

StefMa commented Mar 5, 2018 via email

@JLLeitschuh
Copy link
Contributor

Is this only an issue in IntelliJ or when you execute the script with Gradle do you also get a compilation error?

@StefMa
Copy link
Contributor Author

StefMa commented Mar 6, 2018

@JLLeitschuh just checked it and it really seems just a IDE issue.
If I add the code and do a ./gradlew clean build --no-build-cache I got a successfully output.. 👍

@bamboo
Copy link
Member

bamboo commented Mar 6, 2018

Thanks, everyone!

Closing as duplicate of #685

@bamboo bamboo closed this as completed Mar 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants