-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dongxl
committed
Nov 8, 2018
1 parent
7da6def
commit 355f5a4
Showing
24 changed files
with
71 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
trigger_build_doc: | ||
stage: deploy | ||
only: | ||
- develop | ||
script: | ||
- curl -X POST http://192.168.180.192/jenkins/job/bxs-apidoc/buildWithParameters --user dongxuanliang252:110e0732fde118c802cb616637fd47278d -d 'projectName=spring-biz-module' | ||
- curl -X POST http://192.168.180.192/jenkins/job/bxs-servicedoc/buildWithParameters --user dongxuanliang252:110e0732fde118c802cb616637fd47278d -d 'projectName=spring-biz-module' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "spring-biz-module接口文档", | ||
"version": "1.0.0", | ||
"description": "", | ||
"title": "spring-biz-module", | ||
"url" : "https://demo.test.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,55 @@ | ||
buildscript { | ||
ext { | ||
springBootVersion = '1.5.17.RELEASE' | ||
} | ||
allprojects { | ||
apply plugin: 'maven' | ||
group = 'com.winbaoxian' | ||
version = '1.0.0' | ||
} | ||
|
||
subprojects { | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'idea' | ||
sourceCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "http://192.168.180.191:8081/nexus/content/repositories/public" } | ||
maven { url "http://192.168.180.191:8081/nexus/content/repositories/snapshots/" } | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | ||
compile('com.winbaoxian:bxs-service-model:1.0a-SNAPSHOT') | ||
compileOnly('org.projectlombok:lombok') | ||
} | ||
} | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'idea' | ||
apply plugin: 'maven' | ||
apply plugin: 'org.springframework.boot' | ||
apply plugin: 'war' | ||
task "create-dirs" << { | ||
sourceSets*.java.srcDirs*.each { it.mkdirs() } | ||
sourceSets*.resources.srcDirs*.each { it.mkdirs() } | ||
} | ||
} | ||
|
||
def isWindows() { | ||
return org.gradle.internal.os.OperatingSystem.current().isWindows() | ||
} | ||
|
||
group = 'com.winbaoxian' | ||
version = '0.0.1-SNAPSHOT' | ||
sourceCompatibility = 1.8 | ||
String apidocCmd = isWindows() ? 'apidoc.cmd' : 'apidoc' | ||
task apidocs(type: Exec, description: '执行生成apidoc文档操作') { | ||
workingDir './' | ||
def docCommand = [apidocCmd, '-o', './build/apidocs', '-f', 'java', '--debug', 'true'] | ||
commandLine docCommand | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "http://192.168.180.191:8081/nexus/content/repositories/public" } | ||
maven { url "http://192.168.180.191:8081/nexus/content/repositories/snapshots/" } | ||
mavenCentral() | ||
String servicedocCmd = isWindows() ? 'servicedoc.cmd' : 'servicedoc' | ||
task servicedocs(type: Exec, description: '执行生成servicedoc文档操作') { | ||
workingDir './' | ||
def serviceCommand = [servicedocCmd, '-o', './build/servicedocs', '-f', 'java', '--debug', 'true'] | ||
commandLine serviceCommand | ||
} | ||
|
||
dependencies { | ||
compile('org.springframework.boot:spring-boot-starter-data-jpa') | ||
compile('org.springframework.boot:spring-boot-starter-web') | ||
compile('com.winbaoxian:bxs-service-model:1.0a-SNAPSHOT') | ||
runtime('mysql:mysql-connector-java') | ||
compileOnly('org.projectlombok:lombok') | ||
testCompile('org.springframework.boot:spring-boot-starter-test') | ||
task wrapper(type: Wrapper) { | ||
gradleVersion = '3.4' | ||
distributionType = 'all' | ||
} | ||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "spring-biz-module接口文档", | ||
"version": "1.0.0", | ||
"description": "", | ||
"title": "spring-biz-module", | ||
"url" : "https://demo.test.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
rootProject.name = 'spring-biz-module' | ||
include 'win-security' | ||
include 'example' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
description = 'win-security' | ||
// | ||
//apply plugin: 'war' | ||
//apply plugin: 'org.springframework.boot' | ||
// | ||
|