From 0228787568fda2bb5b5dd9e89d84e1453320bea0 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Mon, 27 Feb 2023 00:13:09 +0100 Subject: [PATCH] Add Pagination project Signed-off-by: Quentin Legot --- Database/build.gradle | 7 ------- Pagination/build.gradle | 0 Pagination/src/main/java/fr/altarik/toolbox/Main.java | 7 +++++++ Tasks/build.gradle | 8 -------- build.gradle | 7 +++++++ settings.gradle | 3 ++- 6 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 Pagination/build.gradle create mode 100644 Pagination/src/main/java/fr/altarik/toolbox/Main.java diff --git a/Database/build.gradle b/Database/build.gradle index 27285c6..87ae4db 100644 --- a/Database/build.gradle +++ b/Database/build.gradle @@ -1,11 +1,4 @@ dependencies { implementation 'org.postgresql:postgresql:42.5.0' testImplementation 'com.google.code.gson:gson:2.10' - testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}" - testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit_version}" } - -test { - useJUnitPlatform() -} - diff --git a/Pagination/build.gradle b/Pagination/build.gradle new file mode 100644 index 0000000..e69de29 diff --git a/Pagination/src/main/java/fr/altarik/toolbox/Main.java b/Pagination/src/main/java/fr/altarik/toolbox/Main.java new file mode 100644 index 0000000..88dbeed --- /dev/null +++ b/Pagination/src/main/java/fr/altarik/toolbox/Main.java @@ -0,0 +1,7 @@ +package fr.altarik.toolbox; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/Tasks/build.gradle b/Tasks/build.gradle index 590944e..1bb2636 100644 --- a/Tasks/build.gradle +++ b/Tasks/build.gradle @@ -9,9 +9,6 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - - testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}" - testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit_version}" } processResources { @@ -37,8 +34,3 @@ tasks.withType(JavaCompile).configureEach { it.options.release = targetVersion } } - - -test { - useJUnitPlatform() -} diff --git a/build.gradle b/build.gradle index f860cd0..873f6f6 100644 --- a/build.gradle +++ b/build.gradle @@ -27,12 +27,19 @@ subprojects { } } + dependencies { + testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}" + testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit_version}" + } java { withSourcesJar() withJavadocJar() } + test { + useJUnitPlatform() + } repositories { maven { diff --git a/settings.gradle b/settings.gradle index ea6151c..14dcabe 100644 --- a/settings.gradle +++ b/settings.gradle @@ -10,4 +10,5 @@ pluginManagement { } rootProject.name = 'Toolbox' -include(':Tasks', ':Database') +include(':Tasks', ':Database', ':Pagination') +