-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (57 loc) · 1.64 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
plugins {
id("maven-publish")
id("java")
}
group = "com.teamresourceful"
version = "1.1.2"
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.jetbrains:annotations:24.1.0")
implementation("io.netty:netty-buffer:4.1.97.Final")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
java {
withSourcesJar()
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set("Byte Codecs")
description.set("ByteCodecs isa library for encoding and decoding bytebufs in a hard defined way.")
url.set("https://github.com/Team-Resourceful/ByteCodecs")
licenses {
license {
name.set("MIT")
}
}
scm {
connection.set("git:https://github.com/Team-Resourceful/ByteCodecs.git")
developerConnection.set("git:https://github.com/Team-Resourceful/ByteCodecs.git")
url.set("https://github.com/Team-Resourceful/ByteCodecs")
}
}
}
}
repositories {
maven {
setUrl("https://maven.resourcefulbees.com/repository/maven-releases/")
credentials {
username = System.getenv("MAVEN_USER")
password = System.getenv("MAVEN_PASS")
}
}
}
}