-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
121 lines (101 loc) · 2.84 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
}
plugins {
id 'com.gradle.plugin-publish' version '0.9.7'
id 'com.github.ben-manes.versions' version '0.15.0'
id 'com.jfrog.bintray' version '1.7.3'
}
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
apply plugin: 'codenarc'
repositories {
jcenter()
mavenCentral()
}
task('createClasspathManifest') {
def outputDir = file("$buildDir/$name")
inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir
doLast {
outputDir.mkdirs()
file("$outputDir/plugin-classpath.txt").text =
sourceSets.main.runtimeClasspath.join("\n")
}
}
task('reports') {
dependsOn clean, test, jacocoTestReport, codenarcMain, codenarcTest, dependencyUpdates
}
dependencies {
compile gradleApi()
compile 'org.codehaus.groovy:groovy-all:2.4.11'
compile 'commons-codec:commons-codec:1.10'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
testCompile 'org.apache.commons:commons-lang3:3.6'
testCompile 'commons-io:commons-io:2.5'
testRuntime files(createClasspathManifest)
}
group = 'de.eightbitboy'
version = '0.1.1'
test {
outputs.upToDateWhen { false }
testLogging {
exceptionFormat = 'full'
events 'failed', /*'passed',*/ 'skipped', 'standardOut'
}
}
codenarcMain {
ignoreFailures true
configFile file('config/codenarc/main_rules.groovy')
}
codenarcTest {
ignoreFailures true
configFile file('config/codenarc/test_rules.groovy')
}
pluginBundle {
website = 'https://github.com/EightBitBoy/grafie'
vcsUrl = '[email protected]:EightBitBoy/grafie.git'
description = 'Grafie encrypts and decrypts files in your workspace. Use it to protect sensitive information in your public git repositories!'
tags = ['crypto', 'cryptography', 'encryption', 'git', 'privacy']
plugins {
grafie {
id = 'de.eightbitboy.grafie'
displayName = 'Grafie - Gradle File Encryption Plugin'
version = project.version
}
}
}
publishing {
publications {
GrafiePublication(MavenPublication) {
from components.java
groupId project.group
artifactId 'grafie'
version project.version
}
}
}
bintray {
user = findProperty('bintrayUser')
key = findProperty('bintrayKey')
publications = ['GrafiePublication']
publish = true
override = false
pkg {
repo = 'projects'
name = 'grafie'
licenses = ['Apache-2.0']
vcsUrl = '[email protected]:EightBitBoy/grafie.git'
publicDownloadNumbers = true
version {
name = project.version
released = new Date()
}
}
}