-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.gradle
73 lines (63 loc) · 1.57 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id 'groovy'
id 'java'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.10.1'
}
group 'chrisney'
version '1.0.0.8'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
sourceSets {
test {
java {
srcDirs = ['src/test/java']
}
}
}
dependencies {
implementation gradleApi()
implementation localGroovy()
implementation 'org.codehaus.groovy:groovy-all:2.5.4'
implementation group: 'commons-io', name: 'commons-io', version: '2.5'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.6.0.201912101111-r'
}
// Unit Tests:
test {
useJUnit()
maxHeapSize = '1G'
}
apply plugin: 'maven'
pluginBundle {
website = 'https://github.com/christopherney/Enigma'
vcsUrl = 'https://github.com/christopherney/Enigma'
tags = ['obfuscation', 'obfuscator', 'encryption', 'string-encryption', 'security']
}
/**
* Publish on gradle.org
* $ ./gradlew publishPlugins
*/
gradlePlugin {
//noinspection GroovyAssignabilityCheck
plugins {
enigmaPlugin {
id = 'com.chrisney.enigma'
displayName = 'Enigma Plugin'
description = 'Obfuscator Strings Encryption plugin for Android/Java apps.'
implementationClass = 'com.chrisney.enigma.EnigmaPlugin'
}
}
}
/**
* Local Maven repository (for testing purpose)
*/
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('repo'))
}
}
}