- try making a factorio mod portal api client, for auto releasing
- make webmapTileDir a configurable variable
This commit is contained in:
parent
ec1f1bc200
commit
7141d7e5f7
16 changed files with 287 additions and 34 deletions
|
|
@ -11,14 +11,16 @@ plugins {
|
|||
object Versions {
|
||||
const val jvmTarget = "11"
|
||||
const val kotlinTarget = "1.6"
|
||||
const val kotlin = "1.6.10"
|
||||
|
||||
const val gradleNodePlugin = "3.2.0"
|
||||
const val gradleDockerComposePlugin = "0.15.0"
|
||||
|
||||
const val kotlin = "1.6.10"
|
||||
const val kotlinXSerialization = "1.3.2"
|
||||
const val kvision = "5.8.1"
|
||||
const val semver = "1.1.2"
|
||||
const val http4k = "4.19.1.0"
|
||||
const val jsoup = "1.14.3"
|
||||
|
||||
const val kotest = "5.1.0"
|
||||
}
|
||||
|
|
@ -31,7 +33,7 @@ dependencies {
|
|||
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
|
||||
|
||||
implementation(enforcedPlatform("org.jetbrains.kotlinx:kotlinx-serialization-bom:${Versions.kotlinXSerialization}"))
|
||||
implementation(platform("org.jetbrains.kotlinx:kotlinx-serialization-bom:${Versions.kotlinXSerialization}"))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json")
|
||||
// implementation("com.charleskorn.kaml:kaml:0.37.0")
|
||||
|
|
@ -46,6 +48,12 @@ dependencies {
|
|||
|
||||
// https://github.com/avast/gradle-docker-compose-plugin
|
||||
implementation("com.avast.gradle:gradle-docker-compose-plugin:${Versions.gradleDockerComposePlugin}")
|
||||
|
||||
implementation(platform("org.http4k:http4k-bom:${Versions.http4k}"))
|
||||
implementation("org.http4k:http4k-core")
|
||||
implementation("org.http4k:http4k-client-okhttp")
|
||||
|
||||
implementation("org.jsoup:jsoup:${Versions.jsoup}")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
|
||||
rootProject.name = "buildSrc"
|
||||
|
||||
apply(from = "./repositories.settings.gradle.kts")
|
||||
|
||||
@Suppress("UnstableApiUsage") // Central declaration of repositories is an incubating feature
|
||||
dependencyResolutionManagement {
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
from(files("../gradle/libs.versions.toml"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package dev.adamko.kafkatorio.task
|
||||
|
||||
import org.gradle.api.DefaultTask
|
||||
import org.http4k.client.OkHttp
|
||||
import org.http4k.core.Method
|
||||
import org.http4k.core.Request
|
||||
|
||||
abstract class FactorioModPortalDeploy : DefaultTask() {
|
||||
|
||||
init {
|
||||
super.doFirst {
|
||||
|
||||
val client = OkHttp()
|
||||
|
||||
val request = Request(Method.GET, "https://factorio.com/login?mods=1")
|
||||
|
||||
println(client(request))
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue