Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,25 @@ plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'com.enonic.defaults' version '2.1.6'
alias(libs.plugins.enonic.defaults)
id 'com.enonic.xp.base'
}

ext {
okhttpVersion = '5.3.2'
}

dependencies {
compileOnly xplibs.api.script
compileOnly xplibs.api.core
implementation 'com.github.mizosoft.methanol:methanol:1.9.0'
implementation 'io.github.hakky54:sslcontext-kickstart:9.2.1'
testImplementation 'org.junit.jupiter:junit-jupiter:6.0.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation "org.mockito:mockito-core:5.23.0"
testImplementation "com.squareup.okhttp3:okhttp-tls:${okhttpVersion}"
testImplementation "com.squareup.okhttp3:mockwebserver:${okhttpVersion}"
implementation libs.methanol
implementation libs.ayza
testImplementation libs.junit.jupiter
testRuntimeOnly libs.junit.jupiter.engine
testRuntimeOnly libs.junit.platform.launcher
testImplementation libs.mockito.core
testImplementation libs.okhttp.tls
testImplementation libs.okhttp.mockwebserver
testImplementation "com.enonic.xp:testing:${xpVersion}"
testImplementation('org.slf4j:slf4j-api') {
testImplementation(libs.slf4j.api) {
version {
strictly '1.7.26'
strictly libs.versions.slf4j.get()
}
}
}
Expand Down
25 changes: 25 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[versions]
methanol = "1.9.0"
ayza = "10.0.5"
junit5 = "6.0.3"
mockito = "5.23.0"
okhttp = "5.3.2"
slf4j = "1.7.26"

[libraries]
methanol = { module = "com.github.mizosoft.methanol:methanol", version.ref = "methanol" }
ayza = { module = "io.github.hakky54:ayza", version.ref = "ayza" }

junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit5" }
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit5" }
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher" }

mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }

okhttp-tls = { module = "com.squareup.okhttp3:okhttp-tls", version.ref = "okhttp" }
okhttp-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" }

slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }

[plugins]
enonic-defaults = { id = "com.enonic.defaults", version = "2.1.6" }