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
60113d20
authored
May 09, 2018
by
kimzing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改依赖
parent
1cd40236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
1 deletions
+39
-1
build.gradle
+39
-1
No files found.
build.gradle
View file @
60113d20
...
...
@@ -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'
}
}
}
}
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