代码拉取完成,页面将自动刷新
同步操作将从 smart-doc-team/smart-doc-example-cn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
buildscript {
ext {
springBootVersion = '2.3.4.RELEASE'
smartDocVersion = '2.1.8'
}
repositories {
maven { url 'http://localhost:8081/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('se.transmode.gradle:gradle-docker:1.2')
classpath("com.github.shalousun:smart-doc-gradle-plugin:${smartDocVersion}")
}
}
group 'com.power.doc'
version '1.0'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'docker'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'smart-doc'
smartdoc {
//
configFile = file("src/main/resources/smart-doc.json")
// exclude artifact
exclude 'org.springframework.boot:xx'
exclude 'org.springframework.boot:ddd'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
maven { url 'http://localhost:8081/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
configurations.compile {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
exclude group: 'org.springframework.boot', module: 'logback-classic'
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.13.1'
compile('org.springframework.boot:spring-boot-starter') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compile('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4'
compile 'com.alibaba:druid-spring-boot-starter:1.1.23'
compile 'mysql:mysql-connector-java:8.0.15'
compile('org.springframework.boot:spring-boot-starter-log4j2')
compile 'com.lmax:disruptor:3.4.2'
compile('org.springframework.boot:spring-boot-starter-aop')
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.74'
compile 'org.apache.commons:commons-lang3:3.9'
compile("org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}")
compile 'org.apache.commons:commons-text:1.8'
compile 'com.github.shalousun:common-util:2.0.4'
compileOnly 'org.projectlombok:lombok:1.18.0'
compile("com.github.shalousun:smart-doc-gradle-plugin:${smartDocVersion}")
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile 'com.github.shalousun:smart-doc:2.1.8'
}
task('copyConf', type: Copy) {
from "src/main/resources/"
into "build/package/${project.name}/config"
}
task('copyJar', type: Copy) {
from 'build/libs'
into "build/package/${project.name}/lib"
dependsOn('build')
}
task('copyBin', type: Copy) {
from 'src/main/scripts'
into "build/package/${project.name}/bin"
fileMode 0755
}
task('package', type: Tar) {
compression = Compression.GZIP
extension = 'tar.gz'
from "build/package"
mustRunAfter('clean')
dependsOn('clean', 'copyConf', 'copyJar', 'copyBin')
}
task buildDocker(type: Docker, dependsOn: build) {
applicationName = jar.baseName
dockerfile = file('src/main/docker/Dockerfile')
tagVersion = "1.0"
doFirst {
copy {
from jar
into stageDir
}
}
}
//upload jar to nexus
def nexusUrl = "http://localhost:8081/nexus/content/repositories/releases/"
if (version.endsWith("-SNAPSHOT")) {
nexusUrl = "http://localhost:8081/nexus/content/repositories/snapshots/"
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: nexusUrl) {
authentication(userName: "admin", password: "admin123")
}
pom.version = "$project.version"
pom.artifactId = "$project.name"
pom.groupId = "$project.group"
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。