Skip to content

Commit

Permalink
style(all): format all the java files
Browse files Browse the repository at this point in the history
  • Loading branch information
simpleton committed Sep 4, 2018
1 parent 8fc2f0a commit 0fa63ba
Show file tree
Hide file tree
Showing 63 changed files with 7,142 additions and 7,224 deletions.
42 changes: 21 additions & 21 deletions AndResGuard-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@ version rootProject.ext.VERSION_NAME
group rootProject.ext.GROUP

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile group: 'com.tencent.mm', name: 'AndResGuard-core', version: version
compile project(':AndResGuard-core')
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile group: 'com.tencent.mm', name: 'AndResGuard-core', version: version
compile project(':AndResGuard-core')
}

sourceSets {
main {
java {
srcDir 'src'
}
main {
java {
srcDir 'src'
}
}
}

jar {
manifest {
attributes 'Main-Class': 'com.tencent.mm.resourceproguard.cli.CliMain'
attributes 'Manifest-Version': version
attributes "Jar-Version": "${ANDRESGUARD_VESSION}"
attributes "Build-Time": releaseTime()
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'Main-Class': 'com.tencent.mm.resourceproguard.cli.CliMain'
attributes 'Manifest-Version': version
attributes "Jar-Version": "${ANDRESGUARD_VESSION}"
attributes "Build-Time": releaseTime()
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}

// copy the jar to work directory
task buildJar(type: Copy, dependsOn: [build, jar]) {
from('build/libs') {
include '*' + version + '*.jar'
}
into('../tool_output')
from('build/libs') {
include '*' + version + '*.jar'
}
into('../tool_output')
}

def releaseTime() {
return new Date().format("yyyy-MM-dd HH:mm ZZZ", TimeZone.getDefault())
return new Date().format("yyyy-MM-dd HH:mm ZZZ", TimeZone.getDefault())
}

defaultTasks 'buildJar'

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions AndResGuard-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ group rootProject.ext.GROUP

[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.tools.build:apksig:2.3.3'
compile 'commons-io:commons-io:2.6'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.tools.build:apksig:2.3.3'
compile 'commons-io:commons-io:2.6'
}

sourceSets {
main {
java {
srcDir 'src'
}
main {
java {
srcDir 'src'
}
}
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

Expand Down
Loading

0 comments on commit 0fa63ba

Please sign in to comment.