forked from JakeWharton/flip-tables
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
52 lines (43 loc) · 946 Bytes
/
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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
}
apply plugin: 'maven-publish'
apply plugin: 'java-library'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.22.0'
}
group ARTIFACT_PACKAGE
description = 'Flip Tables'
sourceCompatibility = '1.8'
configurations.all {
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = ARTIFACT_PACKAGE
artifactId = ARTIFACT_NAME
from components.java
pom {
name = ARTIFACT_NAME
}
}
}
}
jar {
into("META-INF/maven/$project.group/$project.name") {
from { generatePomFileForMavenJavaPublication }
rename ".*", "pom.xml"
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}