Skip to content

Commit

Permalink
module设置
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxl committed Nov 8, 2018
1 parent 7da6def commit 355f5a4
Show file tree
Hide file tree
Showing 24 changed files with 71 additions and 26 deletions.
7 changes: 7 additions & 0 deletions .gitlab-ci.yml
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'
7 changes: 7 additions & 0 deletions apidoc.json
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"
}
69 changes: 43 additions & 26 deletions build.gradle
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.
7 changes: 7 additions & 0 deletions servicedoc.json
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"
}
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
rootProject.name = 'spring-biz-module'
include 'win-security'
include 'example'


5 changes: 5 additions & 0 deletions win-security/build.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
description = 'win-security'
//
//apply plugin: 'war'
//apply plugin: 'org.springframework.boot'
//

0 comments on commit 355f5a4

Please sign in to comment.