-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
135 lines (120 loc) · 3.9 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'jacoco'
id "org.sonarqube" version "5.1.0.4882"
}
apply from: 'gradle/sonarqube.gradle'
group = 'org.padler'
version = '1.8.0'
description = 'Closure Stylesheets'
java.sourceCompatibility = JavaVersion.VERSION_17
test {
useJUnitPlatform()
}
test.finalizedBy jacocoTestReport
jacoco {
toolVersion = "0.8.12"
}
jacocoTestReport {
reports {
xml.required = true
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("args4j:args4j:2.37")
implementation("com.google.code.gson:gson:2.11.0")
implementation("com.github.spotbugs:spotbugs-annotations:4.8.6")
implementation("com.google.javascript:closure-compiler-unshaded:v20240317")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.0")
testImplementation('org.mockito:mockito-core:5.12.0')
testImplementation('org.mockito:mockito-junit-jupiter:5.12.0')
testImplementation("com.google.truth:truth:1.4.4")
testImplementation('org.assertj:assertj-core:3.26.3')
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'closure-stylesheets'
from components.java
artifact sourcesJar
artifact javadocJar
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Closure-stylesheets'
description = 'Closure Stylesheets is an extension to CSS that adds variables, functions,\n' +
'conditionals, and mixins to standard CSS. The tool also supports\n' +
'minification, linting, RTL flipping, and CSS class renaming.'
url = 'https://github.com/616slayer616/natorderr'
licenses {
license {
name = 'License'
url = 'https://github.com/616slayer616/closure-stylesheets/blob/master/LICENSE'
}
}
developers {
developer {
id = '616slayer616'
name = 'Patrick Adler'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/616slayer616/closure-stylesheets.git'
developerConnection = 'scm:git:ssh://github.com/616slayer616/closure-stylesheets.git'
url = 'https://github.com/616slayer616/closure-stylesheetss'
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/616slayer616/closure-stylesheets"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}