Compare commits
4 commits
48d7953580
...
3419e12f06
Author | SHA1 | Date | |
---|---|---|---|
3419e12f06 | |||
3f7fb10343 | |||
cd873acc24 | |||
8959a13444 |
5 changed files with 25 additions and 33 deletions
14
.idea/misc.xml
generated
14
.idea/misc.xml
generated
|
@ -8,20 +8,6 @@
|
|||
<pattern value="net.thauvin.erik.MobibotBuild" method="detektBaseline" />
|
||||
<pattern value="net.thauvin.erik.MobibotBuild" method="rootPom" />
|
||||
</component>
|
||||
<component name="PDMPlugin">
|
||||
<option name="customRuleSets">
|
||||
<list>
|
||||
<option value="K:\java\semver\config\pmd.xml" />
|
||||
<option value="$PROJECT_DIR$/../../java/bld-generated-version/config/pmd.xml" />
|
||||
<option value="$PROJECT_DIR$/../../java/bld-pitest/config/pmd.xml" />
|
||||
<option value="$PROJECT_DIR$/../../java/bld-jacoco-report/config/pmd.xml" />
|
||||
<option value="$PROJECT_DIR$/../../java/bld-checkstyle/config/pmd.xml" />
|
||||
<option value="$PROJECT_DIR$/../../java/bld-exec/config/pmd.xml" />
|
||||
<option value="$PROJECT_DIR$/../../java/bld-testng/config/pmd.xml" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="skipTestSources" value="false" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build" />
|
||||
</component>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# mobibot
|
||||
|
||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||
[](https://kotlinlang.org)
|
||||
[](https://kotlinlang.org)
|
||||
[](https://rife2.com/bld)
|
||||
[](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
|
||||
[](https://github.com/ethauvin/mobibot/actions/workflows/bld.yml)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
bld.downloadExtensionJavadoc=false
|
||||
bld.downloadExtensionSources=true
|
||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
||||
bld.extensions=com.uwyn.rife2:bld-generated-version:0.9.6-SNAPSHOT
|
||||
bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.4
|
||||
bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.4-SNAPSHOT
|
||||
bld.extensions=com.uwyn.rife2:bld-generated-version:0.9.6
|
||||
bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.8
|
||||
bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.4
|
||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||
bld.downloadLocation=
|
||||
bld.sourceDirectories=
|
||||
|
|
14
pom.xml
14
pom.xml
|
@ -42,7 +42,7 @@
|
|||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.10.1</version>
|
||||
<version>2.11.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -54,37 +54,37 @@
|
|||
<dependency>
|
||||
<groupId>com.google.cloud</groupId>
|
||||
<artifactId>google-cloud-vertexai</artifactId>
|
||||
<version>1.3.0</version>
|
||||
<version>1.4.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib</artifactId>
|
||||
<version>1.9.24</version>
|
||||
<version>2.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib-common</artifactId>
|
||||
<version>1.9.24</version>
|
||||
<version>2.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
||||
<version>1.9.24</version>
|
||||
<version>2.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||
<version>1.9.24</version>
|
||||
<version>2.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlinx</groupId>
|
||||
<artifactId>kotlinx-coroutines-core</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<version>1.8.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -78,7 +78,7 @@ public class MobibotBuild extends Project {
|
|||
SONATYPE_SNAPSHOTS_LEGACY);
|
||||
|
||||
var log4j = version(2, 23, 1);
|
||||
var kotlin = version(1, 9, 24);
|
||||
var kotlin = version(2, 0, 0);
|
||||
scope(compile)
|
||||
// PircBotX
|
||||
.include(dependency("com.github.pircbotx", "pircbotx", "2.3.1"))
|
||||
|
@ -88,15 +88,15 @@ public class MobibotBuild extends Project {
|
|||
.include(dependency("commons-codec", "commons-codec", "1.17.0"))
|
||||
.include(dependency("commons-net", "commons-net", "3.10.0"))
|
||||
// Google
|
||||
.include(dependency("com.google.code.gson", "gson", "2.10.1"))
|
||||
.include(dependency("com.google.code.gson", "gson", "2.11.0"))
|
||||
.include(dependency("com.google.guava", "guava", "33.2.0-jre"))
|
||||
.include(dependency("com.google.cloud", "google-cloud-vertexai", "1.3.0"))
|
||||
.include(dependency("com.google.cloud", "google-cloud-vertexai", "1.4.0"))
|
||||
// Kotlin
|
||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
|
||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-common", kotlin))
|
||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk7", kotlin))
|
||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk8", kotlin))
|
||||
.include(dependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.8.0"))
|
||||
.include(dependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.8.1"))
|
||||
.include(dependency("org.jetbrains.kotlinx", "kotlinx-cli-jvm", "0.3.6"))
|
||||
// Logging
|
||||
.include(dependency("org.slf4j", "slf4j-api", "2.0.13"))
|
||||
|
@ -150,6 +150,12 @@ public class MobibotBuild extends Project {
|
|||
.execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updates() throws Exception {
|
||||
super.updates();
|
||||
pomRoot();
|
||||
}
|
||||
|
||||
@BuildCommand(summary = "Copies all needed files to the deploy directory")
|
||||
public void deploy() throws FileUtilsErrorException {
|
||||
var deploy = new File("deploy");
|
||||
|
@ -197,13 +203,13 @@ public class MobibotBuild extends Project {
|
|||
.classTemplate(new File(workDirectory(), "release-info.txt"))
|
||||
.className("ReleaseInfo")
|
||||
.packageName(pkg)
|
||||
.directory(new File(srcMainDirectory(), "kotlin"))
|
||||
.directory(srcMainKotlin)
|
||||
.extension(".kt")
|
||||
.execute();
|
||||
}
|
||||
|
||||
@BuildCommand(value = "root-pom", summary = "Generates the POM file in the root directory")
|
||||
public void rootPom() throws FileUtilsErrorException {
|
||||
@BuildCommand(value = "pom-root", summary = "Generates the POM file in the root directory")
|
||||
public void pomRoot() throws FileUtilsErrorException {
|
||||
PomBuilder.generateInto(publishOperation().info(), dependencies(),
|
||||
Path.of(workDirectory.getPath(), "pom.xml").toFile());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue