54 lines
1.3 KiB
Groovy
54 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = "dev.selimaj.session"
|
|
version = "0.1.0"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// JSON parsing and serialization
|
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.0'
|
|
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.17.0'
|
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.0'
|
|
|
|
// WebSocket API
|
|
implementation 'jakarta.websocket:jakarta.websocket-api:2.1.1'
|
|
// WebSocket client runtime
|
|
implementation 'org.glassfish.tyrus:tyrus-client:2.1.2'
|
|
|
|
// For testing
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/selimaj-dev/session-java")
|
|
credentials {
|
|
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
|
|
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
gpr(MavenPublication) {
|
|
from(components.java)
|
|
}
|
|
}
|
|
} |