Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
cloud-phantom
/
common
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d8d7ea10
authored
May 18, 2018
by
kimzing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into production
parents
5c4ceb2e
202f9c98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletions
+40
-1
build.gradle
+39
-1
src/main/java/com/kingboy/common/utils/apiresult/AbstractApiResult.java
+1
-0
No files found.
build.gradle
View file @
d8d7ea10
...
...
@@ -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'
}
}
}
}
src/main/java/com/kingboy/common/utils/apiresult/AbstractApiResult.java
View file @
d8d7ea10
...
...
@@ -10,6 +10,7 @@ import lombok.Data;
@Data
public
abstract
class
AbstractApiResult
{
protected
String
code
;
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment