I am working with a back-end java/ front-end html/js/css application currently running on a windows 2008 server with Gradle(spring-boot) build. I am attempting to migrate this application to IBM’s Bluemix cloud service(dedicated). I have experience building an application using Maven with Bluemix using eclipse, however my project cannot be converted to a Maven project because of the dependencies already built into the code. If anyone has any experience using Gradle to build applications for Bluemix I would appreciate any help. Thanks.
This is my build.gradle file. Thanks for any help.
buildscript {
ext {
springBootVersion = ‘1.3.2.RELEASE’
}
repositories {
mavenCentral()
}
dependencies {
classpath(“org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}”)
}
}
apply plugin: ‘java’
apply plugin: ‘eclipse’
//apply plugin: ‘idea’
apply plugin: ‘spring-boot’
//apply plugin: ‘war’
jar {
baseName = ‘tax-portal’
version = ‘1.1.0’
}
sourceSets {
main {
java {
srcDir ‘src/main/java’
}
resources {
srcDir ‘src/main/resources’
srcDir ‘public’
}
output.resourcesDir = ‘build/static’
}
}
//war {
// baseName = ‘tax-portal’
//version = ‘1.0.0’
// from ‘public/’
// webXml = file(‘./web.xml’)
//}
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
//compile files('C:/Program Files (x86)/IBM/Java60/lib/tools.jar') compile files('C:/Users/H22673/db2_10 driver/db2jcc.jar') compile files('C:/Users/H22673/db2_10 driver/db2jcc_license_cu.jar') compile files('C:/Users/H22673/db2_10 driver/db2jcc4.jar') compile('org.springframework.boot:spring-boot-starter-data-jpa') compile('org.springframework.boot:spring-boot-starter-data-rest') compile('org.springframework.boot:spring-boot-starter-jdbc') compile 'org.springframework.ldap:spring-ldap-core:2.0.4.RELEASE' compile("org.springframework.security:spring-security-ldap:3.2.5.RELEASE") //compile("org.springframework.security:spring-security-web:3.2.5.RELEASE") compile('org.springframework.boot:spring-boot-starter-security') compile('org.springframework.boot:spring-boot-starter-web') compile('org.springframework.data:spring-data-rest-hal-browser') compile("org.springframework:spring-tx") compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.7.4' compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.4' compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.7.4' testCompile('org.springframework.boot:spring-boot-starter-test') //providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
}
eclipse {
classpath {
containers.remove(‘org.eclipse.jdt.launching.JRE_CONTAINER’)
containers ‘org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7’
}
}
task wrapper(type: Wrapper) {
gradleVersion = ‘2.9’
}