-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (54 loc) · 1.62 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
/*
* Copyright 2023 Michael Käser
*
* This file is free software: you can redistribute it and/or modify
* it under the terms of either the Apache License, Version 2.0 or the MIT License.
*
* You may obtain a copy of the Apache License, Version 2.0 and the MIT License at
* <http://www.apache.org/licenses/LICENSE-2.0> and
* <https://opensource.org/licenses/MIT>, respectively.
*/
plugins {
id("java-library")
id("io.freefair.lombok") version "8.0.1"
id("maven-publish")
}
group = "de.mickare.jcp"
version = "0.0.3"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:24.0.0")
compileOnly("org.projectlombok:lombok:1.18.26")
annotationProcessor("org.projectlombok:lombok:1.18.26")
testCompileOnly("org.projectlombok:lombok:1.18.26")
testAnnotationProcessor("org.projectlombok:lombok:1.18.26")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
}
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
withSourcesJar()
withJavadocJar()
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mickare/jcp")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
}