Score
0
Watch 30 Star 107 Fork 21

摆码王子 / authmoreJavaApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
基于 OAuth2.0 协议的跨域认证授权开发套件, 包含授权服务和开放平台 Docker 镜像,基于 Spring Boot Starter 的资源服务工具包和客户端(第三方应用)工具包 spread retract

Clone or download
build.gradle 4.52 KB
Copy Edit Web IDE Raw Blame History
摆码王子 authored 2019-06-11 21:16 . fix bugs in jwt grant type
/*
* Copyright 2019 ZHENG BAO LE
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
maven {
url = 'https://maven.aliyun.com/repository/public'
}
}
}
plugins {
id "com.gradle.build-scan" version "2.2.1"
id 'com.bmuschko.docker-spring-boot-application' version '4.8.0'
}
allprojects {
group = 'com.github.jameszbl'
version = '1.0.9'
}
description = 'Authmore - 轻量级 OAuth2 开放平台开发套件'
ext {
registryRepository = "jameszbl"
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'com.bmuschko.docker-spring-boot-application'
repositories {
mavenLocal()
maven {
url = 'https://maven.aliyun.com/repository/public'
}
maven {
url = 'https://repo.spring.io/milestone'
}
maven {
url = 'http://repo.maven.apache.org/maven2'
}
}
docker {
registryCredentials {
url = "docker.io"
username = "${System.env.PRIVATE_REG_USERNAME}"
password = "${System.env.PRIVATE_REG_PASSWORD}"
}
springBootApplication {
baseImage = 'openjdk:8-jdk-alpine'
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Authmore'
description = 'A lightweight development kit for building OAuth2 open platform.'
url = 'https://github.com/jameszbl/authmore'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'JamesZBL'
name = 'ZHENG BAO LE'
email = '1146556298@qq.com'
organization = 'letec.top'
organizationUrl = 'https://b.letec.top'
}
}
scm {
connection = 'scm:git:git://github.com/jameszbl/authmore.git'
developerConnection = 'scm:git:ssh://github.com/jameszbl/authmore.git'
url = 'https://github.com/jameszbl/authmore'
}
}
}
}
repositories {
maven {
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 = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
afterEvaluate {
configure(options) {
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
failOnError false
links "http://docs.oracle.com/javase/8/docs/api"
}
}
}
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/zbl1996/authmore.git
git@gitee.com:zbl1996/authmore.git
zbl1996
authmore
authmore
master

Help Search