-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (55 loc) · 1.55 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
plugins {
id 'java-gradle-plugin'
id 'eclipse'
id 'maven-publish'
id 'gradle-key-encryption-plugin' version '0.1'
}
group 'net.fuzzo'
version '0.1'
repositories {
mavenCentral()
}
/*
dependencies {
implementation 'dev.gradleplugins:gradle-api:7.6'
}
*/
testing {
suites {
// Configure the built-in test suite
test {
// Use JUnit Jupiter test framework
useJUnitJupiter('5.9.1')
}
// Create a new test suite
functionalTest(JvmTestSuite) {
dependencies {
// functionalTest test suite depends on the production code in tests
implementation project()
}
targets {
all {
// This test suite should run after the built-in test suite has run its tests
testTask.configure { shouldRunAfter(test) }
}
}
}
}
}
gradlePlugin {
// Define the plugin
plugins {
keyencryption {
id = 'gradle-key-encryption-plugin'
implementationClass = 'net.fuzzo.gradle.plugin.keyencryption.KeyEncryptionPlugin'
displayName = 'gradle-key-encryption-plugin'
description = 'Gradle plugin to encrypt and decrypt text using a secrey key stored in a Java keystore'
tags.set(['encryption'])
}
}
}
gradlePlugin.testSourceSets(sourceSets.functionalTest)
tasks.named('check') {
// Include functionalTest as part of the check lifecycle
dependsOn(testing.suites.functionalTest)
}