代码拉取完成,页面将自动刷新
同步操作将从 创易/sample 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
buildscript {
repositories {
mavenLocal()
maven { url 'http://repository.jboss.com/maven2/' }
mavenCentral()
jcenter()
maven { url "http://repo.spring.io/plugins-release" }
maven { url "http://repo.spring.io/milestone" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springbootVersion}"
classpath "net.ltgt.gradle:gradle-apt-plugin:0.6"
classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath "se.transmode.gradle:gradle-docker:1.2"
classpath "io.spring.gradle:dependency-management-plugin:0.5.6.RELEASE"
//jhipster-needle-gradle-buildscript-dependency - JHipster will add additional gradle build script plugins here
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.4'
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1+'
}
}
apply plugin: 'java'
sourceCompatibility=1.8
targetCompatibility=1.8
apply plugin: 'maven'
apply plugin: 'propdeps'
apply plugin: 'io.spring.dependency-management'
test {
include '**/*UnitTest*'
include '**/*IntTest*'
ignoreFailures true
reports.html.enabled = false
}
task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/tests")
reportOn test
}
/** 此闭包内的声明子类皆可使用 */
allprojects {
group = 'cn.starteasy.sample'
version = '0.0.1-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility=1.8
targetCompatibility=1.8
apply plugin: 'maven'
apply plugin: 'propdeps'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'maven-publish-auth'
repositories {
mavenLocal()
maven { url 'http://repository.jboss.com/maven2/' }
mavenCentral()
jcenter()
maven { url 'http://repo.spring.io/milestone' }
maven { url 'http://repo.spring.io/snapshot' }
maven { url 'https://repository.jboss.org/nexus/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://repo.maven.apache.org/maven2' }
maven { url "http://repo.startupeasy.cn:8081/repository/maven-public/" }
}
publishing {
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
publications {
mavenJava(MavenPublication) { from components.java }
mavenJava(MavenPublication) {
artifact(sourceJar) {
classifier = "sources"
}
}
}
repositories {
maven {
name = 'starteasy'
url "http://repo.startupeasy.cn:8081/repository/maven-${project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases'}"
}
}
}
// tasks.withType(Compile) {
// options.encoding = "UTF-8"
// }
}
task createREADME() {
file("README.md").createNewFile()
}
subprojects {
task "createJavaProject" << {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
/** 可选生成子文件夹 */
file("src/main/filters").mkdirs()
file("src/main/assembly").mkdirs()
file("src/main/config").mkdirs()
file("src/main/scripts").mkdirs()
/** 填充文件,便于git提交 */
file("src/main/java/cn/starteasy").mkdirs()
file("src/main/java/cn/starteasy/package-info.java").createNewFile()
file("src/main/resources").mkdirs()
file("src/main/resources/spring.xml").createNewFile()
file("src/test/java/cn/starteasy").mkdirs()
file("src/test/java/cn/starteasy/package-info.java").createNewFile()
file("src/test/resources/spring.xml").createNewFile()
}
/** 有时候会报错,但需要执行 */
// task createREADME(){
// file("README.md").createNewFile()
// }
configurations {
provided
compile.extendsFrom provided
all*.exclude group: 'org.springframework', module: 'spring'
all*.exclude group: 'asm', module: 'asm'
all*.exclude group: 'log4j', module: 'log4j'
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
}
configure(subprojects.findAll { it.name.contains('war') }) {
apply plugin: 'war'
task createWebProject(dependsOn: 'createJavaProject') << {
def webAppDir = file("$webAppDirName")
webAppDir.mkdirs()
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。