From b014da82605225dff11d512f2f87b3c0aaafd681 Mon Sep 17 00:00:00 2001 From: domi41 Date: Sun, 25 Apr 2021 18:49:48 +0200 Subject: [PATCH] chore(packaging): add some gradle configuration We need a pom.xml as well (or instead?). --- build.gradle | 31 +++++++++++++++++++++++++++++++ settings.gradle | 18 ++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 build.gradle create mode 100644 settings.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..4785b14 --- /dev/null +++ b/build.gradle @@ -0,0 +1,31 @@ +/* + * This build file was generated by the Gradle 'init' task. + * + * This generated file contains a sample Java Library project to get you started. + * For more details take a look at the Java Libraries chapter in the Gradle + * user guide available at https://docs.gradle.org/4.4.1/userguide/java_library_plugin.html + */ + +// Apply the java-library plugin to add support for Java Library +apply plugin: 'java-library' + +// In this section you declare where to find the dependencies of your project +repositories { + // Use jcenter for resolving your dependencies. + // You can declare any Maven/Ivy/file repository here. + jcenter() +} + +dependencies { + // Use the JUnit test framework with assertions and stuff + testImplementation 'org.junit.jupiter:junit-jupiter:5.6.3' + testImplementation 'org.openjdk.jmh:jmh-generator-annprocess:1.21' + + // This dependency is exported to consumers, that is to say found on their compile classpath. + //api 'org.apache.commons:commons-math3:3.6.1' + + // This dependency is used internally, and not exposed to consumers on their own compile classpath. + //implementation 'com.google.guava:guava:23.0' + +} + diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..3e6a720 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,18 @@ +/* + * This settings file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * In a single project build this file can be empty or even removed. + * + * Detailed information about configuring a multi-project build in Gradle can be found + * in the user guide at https://docs.gradle.org/4.4.1/userguide/multi_project_builds.html + */ + +/* +// To declare projects as part of a multi-project build use the 'include' method +include 'shared' +include 'api' +include 'services:webservice' +*/ + +rootProject.name = 'majority-judgment-library-java'