Commit d8d7ea10 by kimzing

Merge branch 'test' into production

parents 5c4ceb2e 202f9c98
......@@ -12,10 +12,11 @@ buildscript {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'org.springframework.boot'
group = 'com.kingboy'
version = '0.0.1-SNAPSHOT'
version = '1.0'
sourceCompatibility = 1.8
repositories {
......@@ -49,4 +50,41 @@ dependencies {
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
//解决Hibernate不支持LocalDate/Time/DateTime问题
compile("org.hibernate:hibernate-java8")
}
//打包源码
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
maven(MavenPublication) {
//指定group/artifact/version信息,可以不填。默认使用项目group/name/version作为groupId/artifactId/version
groupId project.group
artifactId project.name
version project.version
//如果是war包填写components.web,如果是jar包填写components.java
from components.java
//配置上传源码
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
//指定要上传的maven私服仓库
url = "http://47.95.251.20:8081/repository/town/"
//认证用户和密码
credentials {
username 'admin'
password 'admin123'
}
}
}
}
......@@ -10,6 +10,7 @@ import lombok.Data;
@Data
public abstract class AbstractApiResult {
protected String code;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment