mirror of
https://github.com/Guardsquare/proguard.git
synced 2026-03-13 09:50:34 +08:00
Add distribution files
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,8 +1,7 @@
|
||||
.gradle
|
||||
.hg/**
|
||||
.hgtags
|
||||
build
|
||||
base/build
|
||||
.gradle
|
||||
.idea
|
||||
build
|
||||
local.properties
|
||||
|
||||
/lib/
|
||||
@@ -32,7 +32,8 @@ dependencies {
|
||||
}
|
||||
|
||||
task fatJar(type: ShadowJar) {
|
||||
archiveFileName.set('base-fat.jar')
|
||||
destinationDirectory.set(file("$rootDir/lib"))
|
||||
archiveFileName.set('proguard.jar')
|
||||
from sourceSets.main.output
|
||||
configurations = [project.configurations.runtime]
|
||||
manifest {
|
||||
|
||||
@@ -11,4 +11,4 @@ IF EXIST "%PROGUARD_HOME%" GOTO home
|
||||
SET PROGUARD_HOME=%~dp0\..
|
||||
:home
|
||||
|
||||
java -jar "%PROGUARD_HOME%\base\build\libs\base-fat.jar" %*
|
||||
java -jar "%PROGUARD_HOME%\lib\proguard.jar" %*
|
||||
|
||||
@@ -21,4 +21,4 @@ fi
|
||||
|
||||
PROGUARD_HOME=`dirname "$PROGUARD"`/..
|
||||
|
||||
java -jar "$PROGUARD_HOME/base/build/libs/base-fat.jar" "$@"
|
||||
java -jar "$PROGUARD_HOME/lib/proguard.jar" "$@"
|
||||
|
||||
@@ -11,4 +11,4 @@ IF EXIST "%PROGUARD_HOME%" GOTO home
|
||||
SET PROGUARD_HOME=%~dp0\..
|
||||
:home
|
||||
|
||||
java -jar "%PROGUARD_HOME%\gui\build\libs\gui-fat.jar" %*
|
||||
java -jar "%PROGUARD_HOME%\lib\proguardgui.jar" %*
|
||||
@@ -24,4 +24,4 @@ PROGUARD_HOME=`dirname "$PROGUARD"`/..
|
||||
# On Linux, Java 1.6.0_24 and higher hang when starting the GUI:
|
||||
# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7027598
|
||||
# We're using the -D option as a workaround.
|
||||
java -DsuppressSwingDropSupport=true -jar "$PROGUARD_HOME/gui/build/libs/gui-fat.jar" "$@"
|
||||
java -DsuppressSwingDropSupport=true -jar "$PROGUARD_HOME/lib/proguardgui.jar" "$@"
|
||||
@@ -11,4 +11,4 @@ IF EXIST "%PROGUARD_HOME%" GOTO home
|
||||
SET PROGUARD_HOME=%~dp0\..
|
||||
:home
|
||||
|
||||
java -jar "%PROGUARD_HOME%\retrace\build\libs\retrace-fat.jar" %*
|
||||
java -jar "%PROGUARD_HOME%\lib\retrace.jar" %*
|
||||
|
||||
@@ -21,4 +21,4 @@ fi
|
||||
|
||||
PROGUARD_HOME=`dirname "$PROGUARD"`/..
|
||||
|
||||
java -jar "$PROGUARD_HOME/retrace/build/libs/retrace-fat.jar" "$@"
|
||||
java -jar "$PROGUARD_HOME/lib/retrace.jar" "$@"
|
||||
|
||||
35
build.gradle
35
build.gradle
@@ -1,4 +1,5 @@
|
||||
plugins {
|
||||
id 'distribution'
|
||||
id 'maven-publish'
|
||||
id 'signing'
|
||||
}
|
||||
@@ -119,3 +120,37 @@ publishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
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")
|
||||
}
|
||||
@@ -33,7 +33,8 @@ dependencies {
|
||||
}
|
||||
|
||||
task fatJar(type: ShadowJar) {
|
||||
archiveFileName.set('gui-fat.jar')
|
||||
destinationDirectory.set(file("$rootDir/lib"))
|
||||
archiveFileName.set('proguardgui.jar')
|
||||
from sourceSets.main.output
|
||||
configurations = [project.configurations.runtime]
|
||||
manifest {
|
||||
|
||||
@@ -32,7 +32,8 @@ dependencies {
|
||||
}
|
||||
|
||||
task fatJar(type: ShadowJar) {
|
||||
archiveFileName.set('retrace-fat.jar')
|
||||
destinationDirectory.set(file("$rootDir/lib"))
|
||||
archiveFileName.set('retrace.jar')
|
||||
from sourceSets.main.output
|
||||
configurations = [project.configurations.runtime]
|
||||
manifest {
|
||||
|
||||
Reference in New Issue
Block a user