Just some updates, very WIP

This commit is contained in:
Anthony Cicchetti 2025-02-16 09:40:59 -05:00
parent cfefff1f61
commit cf2e7ddab0
10 changed files with 232 additions and 36 deletions

View file

@ -14,7 +14,7 @@ buildscript {
plugins {
id("com.github.johnrengelman.shadow") version Libs.com_github_johnrengelman_shadow_gradle_plugin
kotlin("jvm")
kotlin("jvm") version "2.1.10"
application
}
@ -44,8 +44,6 @@ dependencies {
implementation(Libs.swagger_core)
implementation(Libs.swagger_ui)
implementation(Libs.slack_api_model_kotlin_extension)
implementation(Libs.fuel)
implementation(Libs.fuel_jackson)
testImplementation(Libs.junit_jupiter)
}
@ -54,9 +52,9 @@ application {
mainClass.set("com.anthonycicchetti.slackbot.MainKt")
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

View file

@ -12,16 +12,17 @@ buildscript {
}
}
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
plugins {
`kotlin-dsl`
}
//java {
// toolchain {
// languageVersion = JavaLanguageVersion.of(21)
// }
//}

View file

@ -9,7 +9,7 @@ import kotlin.String
* $ ./gradlew refreshVersions
* And edit the file `versions.properties`
*
* See https://github.com/jmfayard/refreshVersions
* See https://github.com/Splitties/refreshVersions
*/
public object Libs {
public const val jackson_databind: String = "com.fasterxml.jackson.core:jackson-databind:_"
@ -36,6 +36,17 @@ public object Libs {
public const val swagger_core: String = "io.swagger.core.v3:swagger-core:_"
public const val org_jetbrains_kotlin_jvm_gradle_plugin: String =
"org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:_"
public const val kotlin_build_tools_impl: String =
"org.jetbrains.kotlin:kotlin-build-tools-impl"
public const val kotlin_scripting_compiler_embeddable: String =
"org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:_"
public const val kotlin_stdlib_jdk8: String = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:_"
public const val junit_jupiter: String = "org.junit.jupiter:junit-jupiter:_"
public const val slf4j_simple: String = "org.slf4j:slf4j-simple:_"

Binary file not shown.

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

16
gradlew vendored
View file

@ -1,7 +1,7 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -32,10 +32,10 @@
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

14
gradlew.bat vendored
View file

@ -14,7 +14,7 @@
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal

View file

@ -5,7 +5,7 @@ pluginManagement {
gradlePluginPortal()
}
plugins {
id("de.fayard.refreshVersions") version "0.40.2"
id("de.fayard.refreshVersions") version "0.60.5"
}
}

9
slackbot.iml Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View file

@ -1,5 +1,5 @@
#### Dependencies and Plugin versions with their available updates.
#### Generated by `./gradlew refreshVersions` version 0.40.2
#### Generated by `./gradlew refreshVersions` version 0.60.5
####
#### Don't manually edit or split the comments that start with four hashtags (####),
#### they will be overwritten by refreshVersions.
@ -7,27 +7,100 @@
#### suppress inspection "SpellCheckingInspection" for whole file
#### suppress inspection "UnusedProperty" for whole file
plugin.com.github.johnrengelman.shadow=7.1.2
plugin.com.github.johnrengelman.shadow=8.1.1
plugin.de.fayard.buildSrcLibs=0.40.2
plugin.de.fayard.buildSrcLibs=0.60.5
plugin.org.gradle.kotlin.kotlin-dsl=2.4.1
plugin.org.gradle.kotlin.kotlin-dsl=5.1.2
## # available=5.2.0
version.com.fasterxml.jackson.core..jackson-databind=2.13.3
version.com.fasterxml.jackson.module..jackson-module-kotlin=2.13.3
version.com.fasterxml.jackson.core..jackson-databind=2.18.2
version.com.github.kittinunf.fuel..fuel-jackson=2.3.1
version.com.fasterxml.jackson.module..jackson-module-kotlin=2.18.2
version.com.github.kittinunf.fuel..fuel=2.3.1
version.com.slack.api..slack-api-model-kotlin-extension=1.24.0
version.io.javalin..javalin=4.6.4
## # available=4.6.5
## # available=4.6.6
## # available=4.6.7
## # available=4.6.8
## # available=5.0.0.RC0
## # available=5.0.0.RC1
## # available=5.0.0.RC2
## # available=5.0.0
## # available=5.0.1
## # available=5.1.0
## # available=5.1.1
## # available=5.1.2
## # available=5.1.3
## # available=5.1.4
## # available=5.2.0
## # available=5.3.0
## # available=5.3.1
## # available=5.3.2
## # available=5.4.0
## # available=5.4.1
## # available=5.4.2
## # available=5.5.0
## # available=5.6.0
## # available=5.6.1
## # available=5.6.2
## # available=5.6.3
## # available=5.6.4
## # available=5.6.5
## # available=6.0.0-beta.1
## # available=6.0.0-beta.2
## # available=6.0.0-beta.3
## # available=6.0.0-beta.4
## # available=6.0.0
## # available=6.0.1
## # available=6.1.0
## # available=6.1.1
## # available=6.1.2
## # available=6.1.3
## # available=6.1.4
## # available=6.1.6
## # available=6.2.0
## # available=6.3.0
## # available=6.4.0
version.io.javalin..javalin-openapi=4.6.4
## # available=4.6.5
## # available=4.6.6
## # available=4.6.7
## # available=4.6.8
version.io.swagger.core.v3..swagger-core=2.2.2
## # available=2.2.3
## # available=2.2.4
## # available=2.2.5
## # available=2.2.6
## # available=2.2.7
## # available=2.2.8
## # available=2.2.9
## # available=2.2.10
## # available=2.2.11
## # available=2.2.12
## # available=2.2.13
## # available=2.2.14
## # available=2.2.15
## # available=2.2.16
## # available=2.2.17
## # available=2.2.18
## # available=2.2.19
## # available=2.2.20
## # available=2.2.21
## # available=2.2.22
## # available=2.2.23
## # available=2.2.24
## # available=2.2.25
## # available=2.2.26
## # available=2.2.27
## # available=2.2.28
## unused
version.junit=5.8.2
@ -35,8 +108,34 @@ version.junit=5.8.2
version.junit.jupiter=5.8.2
## # available=5.9.0-M1
## # available=5.9.0-RC1
## # available=5.9.0
## # available=5.9.1
## # available=5.9.2
## # available=5.9.3
## # available=5.10.0-M1
## # available=5.10.0-RC1
## # available=5.10.0-RC2
## # available=5.10.0
## # available=5.10.1
## # available=5.10.2
## # available=5.10.3
## # available=5.10.4
## # available=5.10.5
## # available=5.11.0-M1
## # available=5.11.0-M2
## # available=5.11.0-RC1
## # available=5.11.0
## # available=5.11.1
## # available=5.11.2
## # available=5.11.3
## # available=5.11.4
## # available=5.12.0-M1
## # available=5.12.0-RC1
## # available=5.12.0-RC2
version.kotlin=1.7.10
version.kotlin=2.1.10
## # available=2.1.20-Beta1
## # available=2.1.20-Beta2
version.org.slf4j..slf4j-simple=1.7.36
## # available=1.8.0-alpha0
@ -54,5 +153,75 @@ version.org.slf4j..slf4j-simple=1.7.36
## # available=2.0.0-alpha5
## # available=2.0.0-alpha6
## # available=2.0.0-alpha7
## # available=2.0.0-beta0
## # available=2.0.0-beta1
## # available=2.0.0
## # available=2.0.1
## # available=2.0.2
## # available=2.0.3
## # available=2.0.4
## # available=2.0.5
## # available=2.0.6
## # available=2.0.7
## # available=2.0.8
## # available=2.0.9
## # available=2.0.10
## # available=2.0.11
## # available=2.0.12
## # available=2.0.13
## # available=2.0.14
## # available=2.0.15
## # available=2.0.16
## # available=2.1.0-alpha0
## # available=2.1.0-alpha1
version.org.webjars..swagger-ui=4.11.1
## # available=4.13.2
## # available=4.14.0
## # available=4.14.1
## # available=4.14.2
## # available=4.14.3
## # available=4.15.0
## # available=4.15.5
## # available=4.16.0-alpha.1
## # available=4.17.0
## # available=4.17.1
## # available=4.18.0
## # available=4.18.1
## # available=4.18.2
## # available=4.19.0
## # available=4.19.1
## # available=5.0.0
## # available=5.1.0
## # available=5.1.2
## # available=5.1.3
## # available=5.2.0
## # available=5.3.1
## # available=5.4.2
## # available=5.5.0
## # available=5.6.1
## # available=5.7.2
## # available=5.9.0
## # available=5.10.3
## # available=5.11.8
## # available=5.11.9
## # available=5.11.10
## # available=5.12.0
## # available=5.12.2
## # available=5.13.0
## # available=5.14.0
## # available=5.15.0
## # available=5.15.1
## # available=5.15.2
## # available=5.15.2-1
## # available=5.17.0
## # available=5.17.1
## # available=5.17.2
## # available=5.17.6
## # available=5.17.7
## # available=5.17.11
## # available=5.17.14
## # available=5.18.0
## # available=5.18.1
## # available=5.18.2
## # available=5.18.3