We are working/building with eclipse and hence only have the eclipse project-files.
How can I create/generate a gradle build file from an existing eclipse project (we have jar- and web-projects)?
We are working/building with eclipse and hence only have the eclipse project-files.
How can I create/generate a gradle build file from an existing eclipse project (we have jar- and web-projects)?
There is no conversion utility from Eclipse to Gradle. But since an Eclipse build is typically fairly straightforward, it shouldn’t be that hard to write an equivalent Gradle build. Of course you’ll have to invest some time into learning Gradle. Together with the Gradle User Guide, the sample builds in the full Gradle distribution should get you started.
i have used a script like the one below for small projects.
apply plugin: ‘java’ repositories { mavenCentral() } sourceSets.main.java.srcDirs = [“src”] sourceSets.test.java.srcDirs = [“tst”] sourceSets.main.resources.srcDirs = [“src”] sourceCompatibility = 1.6 dependencies {
compile fileTree(dir: ‘lib’, includes: [’*.jar’])
testCompile group: ‘junit’,name:‘junit’,version: ‘4.8+’ }