buildscript { ext { springBootVersion = '1.5.7.RELEASE' dockerVersion = '0.12.0' dcokerRegistry = "10.10.100.200:5000" } repositories { mavenLocal() maven { url "https://plugins.gradle.org/m2/" } maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } maven { url 'http://10.10.101.21:8081/artifactory/ext-release-local' } jcenter() mavenCentral() } dependencies { classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:${dockerVersion}" } } group 'com.uas.platform.oos' version '1.0.3' apply plugin: "com.palantir.docker" apply plugin: 'org.springframework.boot' apply plugin: 'maven-publish' apply from: "$rootDir/gradle/tasks.gradle" dependencies { compile project(":oos-core") compile "org.springframework.boot:spring-boot-starter-web" compile "org.springframework.boot:spring-boot-starter-thymeleaf" compile "org.webjars:webjars-locator" compile "org.webjars:jquery:2.1.1" compile "org.webjars:angularjs:1.4.3" compile "org.webjars:bootstrap:3.2.0" testCompile "org.springframework.boot:spring-boot-starter-test" } jar { baseName = project.name version = '' } publishing { publications { // Publish maven snapshot coreSnapshot(MavenPublication) { groupId project.group artifactId project.name version project.version artifact source: "${buildDir}/libs/${project.name}.jar", extension: 'jar' // artifact "${buildDir}/libs/${project.name}.jar" } } repositories { maven { credentials { username "yingp" password "111111" } url "http://10.10.101.21:8081/artifactory/libs-release-local" } } } build.finalizedBy(publish, publishToMavenLocal)