代码拉取完成,页面将自动刷新
同步操作将从 牧云12/proguard 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
plugins {
id 'com.jfrog.bintray'
id 'distribution'
id 'signing'
}
allprojects {
group = 'com.guardsquare'
version = proguardVersion
}
task buildDocumentation(type: Exec) {
inputs.dir 'docs/md'
inputs.file 'docs/mkdocs.yml'
outputs.dir 'docs/html'
executable 'sh'
args '-c', "docker run --volume $rootDir/docs:/docs --rm squidfunk/mkdocs-material:5.2.2 build"
}
// Add repositories
allprojects { Project project ->
afterEvaluate {
if (pluginManager.hasPlugin('maven-publish')) {
configure(project) {
publishing {
repositories {
maven {
name = 'Github'
url = uri('https://maven.pkg.github.com/guardsquare/proguard')
credentials {
username = project.findProperty('PROGUARD_GITHUB_USERNAME')
password = project.findProperty('PROGUARD_GITHUB_TOKEN')
}
}
maven {
name = 'Sonatype'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials(PasswordCredentials) {
username = findProperty('PROGUARD_STAGING_USERNAME')
password = findProperty('PROGUARD_STAGING_PASSWORD')
}
}
}
}
if (hasProperty('PROGUARD_SIGNING_KEY')) {
// We use in-memory ascii-armored keys
// See https://docs.gradle.org/current/userguide/signing_plugin.html#sec:in-memory-keys
signing {
String key = findProperty('PROGUARD_SIGNING_KEY')
String password = findProperty('PROGUARD_SIGNING_PASSWORD')
useInMemoryPgpKeys(key, password)
sign publishing.publications.getByName(project.name)
}
}
}
}
}
}
// Add publication
allprojects { Project project ->
afterEvaluate {
if (pluginManager.hasPlugin('maven-publish')) {
configure(project) {
publishing {
publications {
create(project.name, MavenPublication) {
pom {
artifactId = "proguard-$project.name"
name = "$group:$artifactId"
url = 'https://www.guardsquare.com/proguard'
licenses {
license {
name = 'GNU General Public License, Version 2'
url = 'https://www.gnu.org/licenses/gpl-2.0.txt'
distribution = 'repo'
}
}
issueManagement {
system = 'Github Tracker'
url = 'https://github.com/Guardsquare/proguard/issues'
}
scm {
url = 'https://github.com/Guardsquare/proguard.git'
connection = 'scm:git:https://github.com/Guardsquare/proguard.git'
}
developers {
developer {
id = 'lafortune'
name = 'Eric Lafortune'
organization = 'Guardsquare'
organizationUrl = 'https://www.guardsquare.com/'
roles = ['Project Administrator', 'Developer']
}
}
}
}
}
}
}
}
}
}
// Configure default publication (all Java projects)
allprojects { Project project ->
afterEvaluate {
if (pluginManager.hasPlugin('maven-publish') && pluginManager.hasPlugin('java')) {
configure(project) {
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
getByName(project.name) {
from components.java
}
}
}
}
}
}
}
// Configure bintray
allprojects { Project project ->
afterEvaluate {
if (pluginManager.hasPlugin('maven-publish') && pluginManager.hasPlugin('com.jfrog.bintray')) {
configure(project) {
bintray {
Publication pub = publishing.publications.getByName(project.name)
user = findProperty('PROGUARD_BINTRAY_USER')
key = findProperty('PROGUARD_BINTRAY_KEY')
publications = [project.name]
dryRun = false
override = true
pkg {
repo = 'proguard'
name = "$project.group:$pub.artifactId"
desc = pub.artifactId
licenses = ['GPL-2.0']
websiteUrl = pub.pom.url.get()
issueTrackerUrl = pub.pom.issueManagement.url.get()
vcsUrl = pub.pom.scm.url.get()
version {
name = project.version
gpg.sign = true
released = new Date()
}
}
}
}
}
}
}
distributions {
main {
distributionBaseName.set('proguard')
contents {
into('lib') {
from tasks.getByPath(':base:fatJar').outputs
from tasks.getByPath(':gui:fatJar').outputs
from tasks.getByPath(':retrace:fatJar').outputs
from tasks.getByPath(':ant:fatJar').outputs
}
into('docs') {
from('docs/md') {
includeEmptyDirs = false
include '**/*.md'
}
}
from(rootDir) {
include 'bin/'
include 'examples/'
include 'LICENSE'
include 'LICENSE_exception.md'
}
}
}
}
distTar {
compression = Compression.GZIP
archiveExtension.set('tar.gz')
}
clean {
delete file("$rootDir/lib")
// TODO docker runs as root, so cannot clean the HTML yet
// delete buildDocumentation.outputs
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。