1 Star 0 Fork 773

xihongshi / kisso

forked from 阿啄debugIT / kisso 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 4.45 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
青苗 提交于 2020-04-04 23:04 . 优化改进提示逻辑
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
ext {
configuration = [
javaVersion = JavaVersion.VERSION_1_8
]
libraries = [
springBootVersion = "2.2.6.RELEASE",
lombokVersion = "1.18.10",
jjwtVersion = "0.11.0"
]
}
group = 'com.baomidou'
version = '3.7.6'
description = "kisso is a lightweight Java SSO Framework and reusable components."
sourceCompatibility = "${javaVersion}"
targetCompatibility = "${javaVersion}"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
}
dependencies {
compileOnly("javax.servlet:servlet-api:2.5")
compileOnly("javax.servlet:jsp-api:2.0")
compileOnly("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compileOnly("org.springframework.boot:spring-boot-autoconfigure:${springBootVersion}")
compileOnly("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
api("io.jsonwebtoken:jjwt-api:${jjwtVersion}")
api("io.jsonwebtoken:jjwt-impl:${jjwtVersion}")
api("io.jsonwebtoken:jjwt-jackson:${jjwtVersion}")
compileOnly("org.projectlombok:lombok:${lombokVersion}")
annotationProcessor("org.projectlombok:lombok:${lombokVersion}")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
testCompile("javax.servlet:servlet-api:2.5")
testCompile("junit:junit:4.12")
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
javadoc {
options {
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
failOnError false
links "http://docs.oracle.com/javase/7/docs/api"
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from 'build/docs/javadoc'
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
repositories {
maven {
def userName = System.getProperty("un")
def passWord = System.getProperty("ps")
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username userName
password passWord
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'kisso'
packaging 'jar'
description = 'An enhanced toolkit of SSO to simplify development.'
url = 'https://github.com/baomidou/kisso'
scm {
connection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
developerConnection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
url = 'https://github.com/baomidou/kisso'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'baomidou'
name = 'hubin'
email = 'jobob@qq.com'
}
}
withXml {
def root = asNode()
root.dependencies.'*'.findAll {
def d = it
d.scope.text() == 'runtime' && project.configurations.findByName("implementation").allDependencies.find { dep ->
dep.name == it.artifactId.text()
}.each() {
d.scope*.value = 'compile'
d.appendNode('optional', true)
}
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
}
Java
1
https://gitee.com/ha_ha_ha/kisso.git
git@gitee.com:ha_ha_ha/kisso.git
ha_ha_ha
kisso
kisso
master

搜索帮助

14c37bed 8189591 565d56ea 8189591