/
build.gradle
91 lines (72 loc) · 2.34 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
plugins {
id "com.gradle.plugin-publish" version "0.19.0"
// Apply the Java Gradle plugin development plugin to add support for developing Gradle plugins
id 'java-gradle-plugin'
// Apply the Groovy plugin to add support for Groovy
id 'groovy'
id 'maven-publish'
// Enables to run "gradle checkUpdates" task to check dependency updates
id 'name.remal.check-updates' version '1.5.0'
// Enabled to run "gradle release" task to generates application release
id 'net.researchgate.release' version '2.8.1'
}
group 'ai.clarity'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation(platform('org.junit:junit-bom:5.8.1'))
implementation(platform("software.amazon.awssdk:bom:2.17.102"))
implementation('software.amazon.awssdk:codeartifact')
implementation('software.amazon.awssdk:sts')
implementation('software.amazon.awssdk:sso')
testImplementation('org.junit.jupiter:junit-jupiter-api')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')
testImplementation('org.assertj:assertj-core:3.21.0')
}
test {
useJUnitPlatform()
}
gradlePlugin {
// Define the plugin
plugins {
clarity {
id = 'ai.clarity.codeartifact'
implementationClass = 'ai.clarity.codeartifact.ClarityCodeartifactPlugin'
}
}
}
// Add a source set for the functional test suite
sourceSets {
functionalTest {
}
}
gradlePlugin.testSourceSets(sourceSets.functionalTest)
configurations.functionalTestImplementation.extendsFrom(configurations.testImplementation)
// Add a task to run the functional tests
tasks.register('functionalTest', Test) {
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
}
check {
// Run the functional tests as part of `check`
dependsOn(tasks.functionalTest)
}
pluginBundle {
website = 'https://github.com/clarityai-eng/codeartifact-gradle-plugin'
vcsUrl = 'https://github.com/clarityai-eng/codeartifact-gradle-plugin'
description = 'Login easily to aws codeartifact'
tags = ['aws', 'codeartifact']
plugins {
clarity {
// id is captured from java-gradle-plugin configuration
displayName = 'Gradle Codeartifact plugin'
}
}
}
release {
git {
requireBranch = "main"
}
}