buildscript { ext { jacksonVersion = '2.10.2' springBootVersion = '2.2.5.RELEASE' } } plugins { id 'org.springframework.boot' version "$springBootVersion" id 'io.spring.dependency-management' version '1.0.9.RELEASE' id 'groovy' } group = 'com.lemans' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' repositories { mavenLocal() maven { url 'https://workhorse.lemanscorp.com/nexus/content/groups/public/' } } dependencies { implementation 'org.springframework.boot:spring-boot-starter' implementation 'org.codehaus.groovy:groovy-all:3.0.0' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } } test { useJUnitPlatform() } subprojects { defaultTasks 'clean', 'assemble', 'check' apply plugin: 'groovy' apply plugin: "io.spring.dependency-management" apply plugin: 'idea' apply plugin: 'maven-publish' group 'com.lemans.boot.common' version = '0.0.1f' repositories { mavenLocal() maven { url 'https://workhorse.lemanscorp.com/nexus/content/groups/public/' } } task sourceJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } publishing { repositories { maven { credentials { username 'admin' password 'admin123' } if (project.version.endsWith('-SNAPSHOT')) { url 'https://workhorse.lemanscorp.com/nexus/content/repositories/snapshots' } else { url 'https://workhorse.lemanscorp.com/nexus/content/repositories/releases' } } } publications { mavenJava(MavenPublication) { from components.java artifact sourceJar } } } sourceCompatibility = 1.8 targetCompatibility = 1.8 dependencies { implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}" implementation 'org.codehaus.groovy:groovy-all:3.0.0' implementation 'org.apache.httpcomponents:httpclient:4.2.1' implementation 'org.apache.httpcomponents:httpmime:4.0-alpha3' implementation 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2' } }