[ https://issues.apache.org/jira/browse/TAP5-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Weidig reassigned TAP5-2760: -------------------------------- Assignee: Ben Weidig > Improve automatic project setup in Eclipse > ------------------------------------------ > > Key: TAP5-2760 > URL: https://issues.apache.org/jira/browse/TAP5-2760 > Project: Tapestry 5 > Issue Type: Improvement > Reporter: Ben Weidig > Assignee: Ben Weidig > Priority: Minor > > The current dev setup documentation > ([https://tapestry.apache.org/building-tapestry-from-source.html]) is > outdated/incorrect. > To make things easier for newcomers using Eclipse, I suggest adding more > automatic setup via the Eclipse Gradle plugin. > I've tested these additions on my machine, but I'm not as proficient in > Gradle as I should be, so someone needs to verify it's actually still working > and adapt it if needed. > Additions/Changes to {{beanmodel/build.gradle}} to generate the grammarSource > and add the correct sourceSets on import/Gradle refresh: > {code:java} > apply plugin: 'eclipse' > sourceSets { > generated { > java { > srcDirs = [ generateGrammarSource.outputDirectory] > } > } > main { > compileClasspath += sourceSets.generated.output > } > } > eclipse { > synchronizationTasks generateGrammarSource > } > {code} > > Additions/Changes to {{tapestry-core/build.gradle}} to generate the > grammarSource and add the correct sourceSets on import/Gradle refresh > {code:java} > sourceSets { > generated { > java { > srcDirs = [ compileCoffeeScript.outputDir, > compileProcessedCoffeescript.outputDir ] > } > } > generatedTest { > java { > srcDirs = [ compileTestCoffeeScript.outputDir ] > } > } > main { > compileClasspath += sourceSets.generated.output > } > test { > compileClasspath += sourceSets.generatedTest.output > } > } > eclipse { > synchronizationTasks compileCoffeeScript, compileTestCoffeeScript > } > {code} > These additions would remove the manual steps to setup Eclipse after the > initial import, reducing some friction and hardening the overall process if > anything changes. -- This message was sent by Atlassian Jira (v8.20.10#820010)