-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (62 loc) · 1.68 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
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.1.2"
id "maven-publish"
}
apply plugin: "com.github.johnrengelman.shadow"
group = 'com.pigumer.tools'
version = '0.1.0-SNAPSHOT'
sourceCompatibility = '11'
targetCompatibility = '11'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'org.yaml:snakeyaml:1.30'
implementation 'com.samskivert:jmustache:1.14'
testImplementation(platform('org.junit:junit-bom:5.8.2'))
testImplementation('org.junit.jupiter:junit-jupiter')
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes "Main-Class": "com.pigumer.tools.cli.Main"
}
}
task sourceJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allJava
}
task javadocJar(type : Jar, dependsOn : javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
target(MavenPublication) {
groupId group
artifactId 'openapi-generator-util'
version version
from components.java
artifact tasks.sourceJar
artifact tasks.javadocJar
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/takesection/openapi-generator-util"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}