1 Star 0 Fork 72

光祥/shaun

forked from baomidou/shaun 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.65 KB
一键复制 编辑 原始数据 按行查看 历史
miemie 提交于 2021-08-04 14:12 . pac4j.version to 4.5.1
ext {
javaVersion = JavaVersion.VERSION_1_8
pac4jVersion = "4.5.1"
springBootVersion = "2.3.10.RELEASE"
shiroVersion = "1.7.1"
togglzVersion = "2.9.4"
}
allprojects {
group = "com.baomidou"
version = "1.2"
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}
description = "基于 pac4j-jwt 的 WEB 安全组件"
subprojects {
apply plugin: 'java-library'
apply plugin: 'io.freefair.lombok'
// apply plugin: 'com.github.hierynomus.license'
sourceCompatibility = "${javaVersion}"
targetCompatibility = "${javaVersion}"
dependencies {
implementation(platform("org.pac4j:pac4j:${pac4jVersion}"))
implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
annotationProcessor(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("ch.qos.logback:logback-classic")
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.warnings = false
options.deprecation = true
options.compilerArgs += ["-parameters"]
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
// license {
// encoding = "UTF-8"
// header = rootProject.file("license.txt")
// include "**/*.java"
// exclude "**/test/**/*.java"
// exclude "**/*Test.java"
// mapping "java", "SLASHSTAR_STYLE"
// ext.year = Calendar.getInstance().get(Calendar.YEAR)
// }
//noinspection GroovyAssignabilityCheck
task sourcesJar(type: Jar) {
archiveClassifier = "sources"
from sourceSets.main.allJava
}
javadoc {
afterEvaluate {
configure(options) {
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
failOnError false
links "http://docs.oracle.com/javase/8/docs/api"
}
}
}
task javadocJar(type: Jar) {
archiveClassifier = "javadoc"
from javadoc
}
test {
useJUnitPlatform()
}
tasks.whenTaskAdded { task ->
if (task.name.contains('signMavenJavaPublication')) {
task.enabled = new File(project.property('signing.secretKeyRingFile') as String).isFile()
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/guangxiaoLong/shaun.git
git@gitee.com:guangxiaoLong/shaun.git
guangxiaoLong
shaun
shaun
master

搜索帮助