[jbosstools-issues] [JBoss JIRA] (JBIDE-10363) Materialize Library : Remove the gradle nature when materializing com.springsource.sts.gradle.classpathcontainer
Fred Bricon (JIRA)
jira-events at lists.jboss.org
Mon Apr 16 10:42:18 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-10363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fred Bricon updated JBIDE-10363:
--------------------------------
Attachment: materialize_gradle.png
First Setup STS :
- Install STS from http://www.springsource.org/downloads/sts
- Start STS
- On the Welcome Screen, click Install Extension
- Select and install the Gradle Integration
- Restart workspace
- Install the JBoss Tools JDT extensions from http://download.jboss.org/jbosstools/updates/development/indigo/
- Restart workspace
Then create a new Gradle project:
- Create a new (General) Project
- create a build.gradle file at the root containing
{code}
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.hibernate', name: 'hibernate-core', version: '3.6.10.Final'
}
{code}
- right click on project > Configure > Convert to Gradle project (unless you previously configured STS to use an existing gradle installation, it will download a gradle runtime)
- A Gradle Dependencies classpath library is added to the project classpath, containing all hibernate dependencies
- right click on that library > Materialize Library
- A warning will be displayed "this will also remove the Gradle configuration from this project"
- When clicking OK, A popup will be displayed "this will also remove the Gradle configuration from this project. this operation can not be undone, are you sure?"
!materialize_gradle.png!
- The fugly green G overlay on the project disappears as the gradle nature is removed from the .project
* build.gradle is not deleted so you can still restore gradle support with Configure > Convert to Gradle project
* The Gradle DSLD library is not removed as the current 'Materialize Library' feature is not supposed to alter other classpath libraries.
> Materialize Library : Remove the gradle nature when materializing com.springsource.sts.gradle.classpathcontainer
> ----------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-10363
> URL: https://issues.jboss.org/browse/JBIDE-10363
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: common/jst/core
> Affects Versions: 3.3.0.M5
> Environment: STS 2.8.1
> Reporter: Fred Bricon
> Assignee: Fred Bricon
> Priority: Minor
> Labels: gradle, materialize_library, new_and_noteworthy
> Fix For: 3.3.0.Beta1
>
> Attachments: materialize_gradle.png
>
>
> Materializing the Gradle Library works fine, but we'd need to also remove the gradle nature and display a warning when doing so (similar to what we do with [Maven|JBIDE-9878]).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list