mirror of
https://github.com/InsanusMokrassar/PlaguBotBotTemplate.git
synced 2024-11-21 23:23:48 +00:00
update template
This commit is contained in:
parent
966cff5795
commit
f42c8da1ca
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,3 +11,6 @@ out/
|
|||||||
|
|
||||||
local.properties
|
local.properties
|
||||||
secret.gradle
|
secret.gradle
|
||||||
|
|
||||||
|
local.*
|
||||||
|
local.*/
|
||||||
|
27
build.gradle
27
build.gradle
@ -1,43 +1,30 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath libs.kotlin.gradle.plugin
|
||||||
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
classpath libs.kotlin.serialization.plugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.jetbrains.kotlin.jvm' version "$kotlin_version"
|
alias libs.plugins.kotlin.jvm
|
||||||
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
|
alias libs.plugins.kotlin.serialization
|
||||||
id "org.jetbrains.kotlin.kapt" version "$kotlin_version"
|
|
||||||
id 'application'
|
id 'application'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
maven { url 'https://jitpack.io' }
|
|
||||||
maven { url "https://dl.bintray.com/insanusmokrassar/PlaguBot/" }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
implementation libs.kotlin
|
||||||
implementation "dev.inmo:plagubot.bot:$plagubot_version"
|
implementation libs.plagubot
|
||||||
|
|
||||||
kapt "com.github.matfax.klassindex:processor:$klassindex_version"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
mainClassName = 'dev.inmo.plagubot.AppKt'
|
mainClassName = 'dev.inmo.plagubot.AppKt'
|
||||||
}
|
}
|
||||||
|
|
||||||
kapt {
|
|
||||||
arguments {
|
|
||||||
arg("com.github.matfax.klassindex.IndexSubclasses", "dev.inmo.plagubot.Plugin")
|
|
||||||
arg("com.github.matfax.klassindex.IndexAnnotated", "dev.inmo.sdi.SDIIncluded")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
19
config.json
19
config.json
@ -1,17 +1,12 @@
|
|||||||
{
|
{
|
||||||
"botToken": "1234567890:ABCDEFGHIJKLMNOP_qrstuvwxyz12345678",
|
"botToken": "1234567890:ABCDEFGHIJKLMNOP_qrstuvwxyz12345678",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
"dev.inmo.plagubot.HelloPlugin"
|
||||||
"type": "Hello",
|
|
||||||
"parameter": "Example"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"params": {
|
"helloPlugin": {
|
||||||
"defaultDatabase": [
|
"print": "Hello World"
|
||||||
"dev.inmo.plagubot.config.DatabaseConfig",
|
},
|
||||||
{
|
"database": {
|
||||||
"url": "jdbc:sqlite:file:test?mode=memory&cache=shared"
|
"url": "jdbc:sqlite:file:local.db?mode=memory&cache=shared"
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,3 @@ kotlin.code.style=official
|
|||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
kotlin.js.generate.externals=true
|
kotlin.js.generate.externals=true
|
||||||
kotlin.incremental=true
|
kotlin.incremental=true
|
||||||
|
|
||||||
kotlin_version=1.6.10
|
|
||||||
klassindex_version=4.1.0-rc.1
|
|
||||||
plagubot_version=0.5.0
|
|
||||||
|
18
gradle/libs.versions.toml
Normal file
18
gradle/libs.versions.toml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[versions]
|
||||||
|
|
||||||
|
kotlin = "1.6.21"
|
||||||
|
plagubot = "1.1.1"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
|
||||||
|
kotlin = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
|
||||||
|
plagubot = { module = "dev.inmo:plagubot.bot", version.ref = "plagubot" }
|
||||||
|
|
||||||
|
# Libs for classpath
|
||||||
|
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||||
|
kotlin-serialization-plugin = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
|
||||||
|
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
||||||
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
Loading…
Reference in New Issue
Block a user