-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
116 lines (101 loc) · 3.32 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
* Copyright (C) 2024 Chewbotcca
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
java
`maven-publish`
application
kotlin("jvm") version "1.9.10"
}
repositories {
maven {
url = uri("https://jenkins.chew.pw/plugin/repository/everything/")
content {
includeGroup("me.memerator.api")
includeGroup("pro.chew.api")
}
}
maven {
url = uri("https://m2.chew.pro/snapshots/")
content {
includeGroup("pw.chew")
}
}
mavenCentral()
// jitpack
maven {
url = uri("https://jitpack.io")
}
}
dependencies {
implementation("com.github.freya022", "JDA", "5fb5005")
implementation("pw.chew", "jda-chewtils", "2.0-contexts-SNAPSHOT")
implementation("ch.qos.logback", "logback-classic", "1.4.11")
implementation("com.squareup.okhttp3", "okhttp", "4.12.0")
implementation("org.json", "json", "20231013")
implementation("io.sentry", "sentry", "5.7.4")
implementation("org.kohsuke", "github-api", "1.316")
implementation("org.jsoup", "jsoup", "1.16.1")
implementation("pro.chew.api", "ChewAPI", "1.0-b5")
implementation("org.reflections", "reflections", "0.10.2")
implementation("me.memerator.api", "MemeratorAPI", "2.0.0_74")
implementation("org.hibernate", "hibernate-core", "5.6.15.Final")
implementation("mysql", "mysql-connector-java", "8.0.33")
implementation("org.codehaus.groovy", "groovy", "3.0.19")
implementation("org.knowm.xchart", "xchart", "3.8.5")
implementation("org.mapdb", "mapdb", "3.0.10")
implementation("com.vladsch.flexmark", "flexmark-html2md-converter", "0.64.8")
}
group = "pw.chew.chewbotcca"
version = "2.0-SNAPSHOT"
description = "Chewbotcca"
java.sourceCompatibility = JavaVersion.VERSION_17
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications.create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = "Chewbotcca"
version = project.version.toString()
from(components["java"])
}
repositories {
maven {
url = uri("https://m2.chew.pro/snapshots")
credentials {
username = properties["mchew-username"].toString()
password = properties["mchew-password"].toString()
}
}
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "17"
kotlinOptions.apiVersion = "1.6"
}
application {
mainClass.set("pw.chew.chewbotcca.Chewbotcca")
}