-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle.kts
98 lines (98 loc) · 2.6 KB
/
build.gradle.kts
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
//import java.time.Instant
//import java.time.format.DateTimeFormatter
//import java.util.Locale
//import java.time.ZoneOffset
//
//plugins {
// id("java-library")
// id("maven-publish")
// id("me.champeau.jmh").version("0.7.2") // requires gradle 7.0+
//}
//
//group = "com.esaulpaugh"
//version = "12.3.4-SNAPSHOT"
//
//java {
// sourceCompatibility = JavaVersion.VERSION_1_8
// targetCompatibility = JavaVersion.VERSION_1_8
//}
//
//tasks.withType<JavaCompile> {
// if (JavaVersion.current() >= JavaVersion.VERSION_1_10) {
// println("setting release 8")
// options.release.set(8)
// }
// options.encoding = "US-ASCII"
//}
//
//tasks.withType<Test> {
// maxParallelForks = Runtime.getRuntime().availableProcessors()
// useJUnitPlatform()
//}
//
//val sourcesJar by tasks.registering(Jar::class) {
// dependsOn(JavaPlugin.CLASSES_TASK_NAME)
// archiveClassifier.set("sources")
// from(sourceSets["main"].allSource)
//}
//
//val javadocJar by tasks.registering(Jar::class) {
// dependsOn(JavaPlugin.JAVADOC_TASK_NAME)
// archiveClassifier.set("javadoc")
// from(sourceSets["main"].allSource)
//}
//
//artifacts {
// add("archives", sourcesJar)
// add("archives", javadocJar)
//}
//
//val dateFormatter : DateTimeFormatter = DateTimeFormatter.ofPattern("MMMM d yyyy", Locale.ENGLISH).withZone(ZoneOffset.UTC)
//
//tasks.withType<Jar> {
// manifest {
// attributes(
// "Implementation-Title" to project.name,
// "Implementation-Version" to project.version,
// "Automatic-Module-Name" to "com.esaulpaugh.headlong",
// "Created-By" to "Gradle KTS",
// "Build-Date" to dateFormatter.format(Instant.now())
// )
// }
//}
//
//publishing {
// publications {
// register("mavenJava", MavenPublication::class) {
// from(components["java"])
// artifact(sourcesJar.get())
// artifact(javadocJar.get())
// }
// }
//}
//
//repositories {
// mavenCentral()
//}
//
//val junitVersion = "5.11.3"
//val bcVersion = "1.79"
//
//dependencies {
// implementation("com.google.code.gson:gson:2.10.1")
//
// testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
// testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
// testImplementation("org.bouncycastle:bcprov-jdk14:$bcVersion")
//
// jmhImplementation("commons-codec:commons-codec:1.17.0")
//}
//
//jmh {
// jmhVersion.set("1.37")
//}
//
//tasks.withType<AbstractArchiveTask>().configureEach {
// isPreserveFileTimestamps = false
// isReproducibleFileOrder = true
//}