2 Star 1 Fork 0

bits-chen/Autowired_old1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 3.27 KB
一键复制 编辑 原始数据 按行查看 历史
yoojia 提交于 2019-03-23 23:57 . Init, v1.0.0
buildscript {
repositories {
maven { url "https://maven.aliyun.com/repository/public" }
jcenter()
}
}
plugins {
id 'java'
id "com.jfrog.bintray" version "1.8.1"
id 'maven'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
jcenter()
}
group 'net.nextabc'
version '1.0.0'
description = 'A lightweight @Aurowired like library'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'org.slf4j:slf4j-log4j12:1.7.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
ext {
projectGroupId = project.group
projectVersion = project.version
projectName = rootProject.name
projectDesc = description
projectURL = "https://github.com/yoojia/Aurowired"
projectVCS = "https://github.com/yoojia/Aurowired.git"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
javadoc {
options {
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "http://docs.oracle.com/javase/8/docs/api"
title projectName
}
}
artifacts {
archives sourcesJar, javadocJar
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['mavenJava']
configurations = ['archives']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = projectName
userOrg = 'yoojia'
licenses = ['Apache-2.0']
vcsUrl = projectVCS
labels = ['java', 'autowired']
publicDownloadNumbers = true
version {
name = projectVersion
desc = projectDesc
vcsTag = projectVersion
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}
def pomConfig = {
name projectName
url projectURL
inceptionYear '2018'
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "yoojia"
name "yoojia chen"
email "yoojiachen@gmail.com"
}
}
scm {
url projectVCS
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId projectGroupId
artifactId projectName
version projectVersion
artifact sourcesJar
artifact javadocJar
pom.withXml {
def root = asNode()
root.appendNode('description', projectDesc)
root.children().last() + pomConfig
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bitschen/Autowired_old1.git
git@gitee.com:bitschen/Autowired_old1.git
bitschen
Autowired_old1
Autowired_old1
master

搜索帮助