diff options
author | Robert Newson <rnewson@apache.org> | 2023-05-10 09:46:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 09:46:30 +0000 |
commit | 9851bb396a8511c0317365dab2d7585cf86a0e3f (patch) | |
tree | 328eb9e7a863c405b9a3f63d5f8a84551e9a6d6f | |
parent | 67c7f60259a79017bce793dfb75333f4747075d5 (diff) | |
parent | bc3eb6717ed5cadd7fc37966af8950b02184bab4 (diff) | |
download | couchdb-9851bb396a8511c0317365dab2d7585cf86a0e3f.tar.gz |
Merge pull request #4587 from apache/nouveau-gradle
switch to Gradle
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r-- | build-aux/Jenkinsfile.full | 2 | ||||
-rwxr-xr-x | dev/run | 2 | ||||
-rw-r--r-- | nouveau/.gitignore | 4 | ||||
-rw-r--r-- | nouveau/build.gradle | 77 | ||||
-rw-r--r-- | nouveau/gradle/wrapper/gradle-wrapper.jar | bin | 0 -> 62076 bytes | |||
-rw-r--r-- | nouveau/gradle/wrapper/gradle-wrapper.properties | 6 | ||||
-rwxr-xr-x | nouveau/gradlew | 245 | ||||
-rw-r--r-- | nouveau/gradlew.bat | 92 | ||||
-rw-r--r-- | nouveau/nouveau.yaml | 2 | ||||
-rw-r--r-- | nouveau/pom.xml | 287 | ||||
-rw-r--r-- | nouveau/settings.gradle | 5 | ||||
-rw-r--r-- | src/docs/src/install/unix.rst | 1 |
13 files changed, 437 insertions, 300 deletions
@@ -433,7 +433,7 @@ endif ifeq ($(with_nouveau), 1) @mkdir -p rel/couchdb/nouveau/ - @cp nouveau/target/server-*-dist.jar rel/couchdb/nouveau/ + @cp nouveau/build/libs/server-*-dist.jar rel/couchdb/nouveau/ @cp nouveau/nouveau.yaml rel/couchdb/nouveau/ endif @@ -478,7 +478,7 @@ clean: @rm -f dev/*.beam dev/devnode.* dev/pbkdf2.pyc log/crash.log @rm -f dev/erlserver.pem dev/couch_ssl_dist.conf ifeq ($(with_nouveau), 1) - @cd nouveau && mvn -B clean + @cd nouveau && ./gradlew clean endif @@ -549,16 +549,16 @@ derived: # Build nouveau nouveau: ifeq ($(with_nouveau), 1) - @cd nouveau && mvn -B -D maven.test.skip=true + @cd nouveau && ./gradlew build -x test endif .PHONY: nouveau-test -nouveau-test: nouveau-test-maven nouveau-test-elixir +nouveau-test: nouveau-test-gradle nouveau-test-elixir -.PHONY: nouveau-test-maven -nouveau-test-maven: couch nouveau +.PHONY: nouveau-test-gradle +nouveau-test-gradle: couch nouveau ifeq ($(with_nouveau), 1) - @cd nouveau && mvn -B test -P allTests + @cd nouveau && ./gradlew test endif .PHONY: nouveau-test-elixir diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full index b4d9b79a3..293cf2954 100644 --- a/build-aux/Jenkinsfile.full +++ b/build-aux/Jenkinsfile.full @@ -277,7 +277,7 @@ pipeline { // We need the jenkins user mapped inside of the image // npm config cache below deals with /home/jenkins not mapping correctly // inside the image - DOCKER_ARGS = '-e npm_config_cache=npm-cache -e HOME=. -v=/etc/passwd:/etc/passwd -v /etc/group:/etc/group -v /root/.m2:/root/.m2' + DOCKER_ARGS = '-e npm_config_cache=npm-cache -e HOME=. -v=/etc/passwd:/etc/passwd -v /etc/group:/etc/group -v /root/.gradle:/root/.gradle' } options { @@ -471,7 +471,7 @@ def boot_nouveau(ctx): "java", "-server", "-jar", - "target/server-%s-dist.jar" % version, + "build/libs/server-%s-dist.jar" % version, "server", "nouveau.yaml", ] diff --git a/nouveau/.gitignore b/nouveau/.gitignore index 89034c41f..a402faa89 100644 --- a/nouveau/.gitignore +++ b/nouveau/.gitignore @@ -2,6 +2,6 @@ .classpath .project .settings/ -target/ .vscode/ -dependency-reduced-pom.xml +.gradle/ +build/ diff --git a/nouveau/build.gradle b/nouveau/build.gradle new file mode 100644 index 000000000..8f07e9a04 --- /dev/null +++ b/nouveau/build.gradle @@ -0,0 +1,77 @@ +plugins { + id 'com.github.johnrengelman.shadow' version '8.1.1' + id 'application' +} + +application { + mainClass = 'org.apache.couchdb.nouveau.NouveauApplication' +} + +repositories { + mavenLocal() + maven { + url = uri('https://repo.maven.apache.org/maven2/') + } +} + +dependencies { + implementation platform('io.dropwizard:dropwizard-dependencies:4.0.0') + implementation 'io.dropwizard:dropwizard-core' + implementation 'io.dropwizard:dropwizard-http2' + implementation 'io.dropwizard.metrics:metrics-core' + implementation 'io.dropwizard.metrics:metrics-caffeine' + implementation 'io.dropwizard.metrics:metrics-jersey2' + testImplementation 'io.dropwizard:dropwizard-testing' + + def luceneVersion = '9.6.0' + implementation group: 'org.apache.lucene', name: 'lucene-core', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-queryparser', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-analysis-common', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-analysis-stempel', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-analysis-smartcn', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-analysis-kuromoji', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-facet', version: luceneVersion + implementation group: 'org.apache.lucene', name: 'lucene-misc', version: luceneVersion + + def swaggerVersion = '2.2.8' + implementation group: 'io.swagger.core.v3', name: 'swagger-jaxrs2-jakarta', version: swaggerVersion + implementation group: 'io.swagger.core.v3', name: 'swagger-jaxrs2-servlet-initializer-v2', version: swaggerVersion + + testImplementation platform('org.junit:junit-bom:5.8.2') + testImplementation 'org.junit.jupiter:junit-jupiter-api' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' + testImplementation 'org.assertj:assertj-core' + testImplementation 'org.mockito:mockito-core' +} + +group = 'org.apache.couchdb.nouveau' +version = '1.0-SNAPSHOT' +description = 'server' +java.sourceCompatibility = JavaVersion.VERSION_11 + +jar { + manifest.attributes('Multi-Release': 'true') +} + +test { + useJUnitPlatform() +} + +shadowJar { + archiveClassifier.set('dist') + mergeServiceFiles() +} + +tasks.withType(JavaCompile) { + options.encoding = 'UTF-8' + options.deprecation = true +} + +tasks.withType(Javadoc) { + options.encoding = 'UTF-8' +} + +tasks.withType(AbstractArchiveTask) { + preserveFileTimestamps = false + reproducibleFileOrder = true +} diff --git a/nouveau/gradle/wrapper/gradle-wrapper.jar b/nouveau/gradle/wrapper/gradle-wrapper.jar Binary files differnew file mode 100644 index 000000000..c1962a79e --- /dev/null +++ b/nouveau/gradle/wrapper/gradle-wrapper.jar diff --git a/nouveau/gradle/wrapper/gradle-wrapper.properties b/nouveau/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..37aef8d3f --- /dev/null +++ b/nouveau/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +networkTimeout=10000 +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/nouveau/gradlew b/nouveau/gradlew new file mode 100755 index 000000000..aeb74cbb4 --- /dev/null +++ b/nouveau/gradlew @@ -0,0 +1,245 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/nouveau/gradlew.bat b/nouveau/gradlew.bat new file mode 100644 index 000000000..6689b85be --- /dev/null +++ b/nouveau/gradlew.bat @@ -0,0 +1,92 @@ +@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/nouveau/nouveau.yaml b/nouveau/nouveau.yaml index 9e45bd711..095b06bcf 100644 --- a/nouveau/nouveau.yaml +++ b/nouveau/nouveau.yaml @@ -4,7 +4,7 @@ idleSeconds: 60 rootDir: target/indexes logging: - level: WARN + level: INFO server: applicationConnectors: diff --git a/nouveau/pom.xml b/nouveau/pom.xml deleted file mode 100644 index 3a4d478dc..000000000 --- a/nouveau/pom.xml +++ /dev/null @@ -1,287 +0,0 @@ -<!-- - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.apache.couchdb.nouveau</groupId> - <artifactId>server</artifactId> - <version>1.0-SNAPSHOT</version> - <name>${project.artifactId}</name> - <description>Full-text indexing for CouchDB</description> - <inceptionYear>2022</inceptionYear> - - <properties> - <argLine>-Duser.language=en -Duser.region=US -Duser.timezone=UTC</argLine> - <dropwizard.version>4.0.0</dropwizard.version> - <junit5.version>5.8.2</junit5.version> - <lucene.version>9.6.0</lucene.version> - <maven.compiler.source>11</maven.compiler.source> - <maven.compiler.target>11</maven.compiler.target> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - <project.tests.exclude>SlowTest</project.tests.exclude> - <slf4j.version>1.7.32</slf4j.version> - <swagger.version>2.2.8</swagger.version> - </properties> - - <dependencyManagement> - <dependencies> - <dependency> - <groupId>org.junit</groupId> - <artifactId>junit-bom</artifactId> - <version>${junit5.version}</version> - <type>pom</type> - <scope>import</scope> - </dependency> - <dependency> - <groupId>io.dropwizard</groupId> - <artifactId>dropwizard-dependencies</artifactId> - <version>${dropwizard.version}</version> - <type>pom</type> - <scope>import</scope> - </dependency> - </dependencies> - </dependencyManagement> - - <dependencies> - - <!-- Dropwizard --> - <dependency> - <groupId>io.dropwizard</groupId> - <artifactId>dropwizard-core</artifactId> - </dependency> - <dependency> - <groupId>io.dropwizard</groupId> - <artifactId>dropwizard-http2</artifactId> - </dependency> - - <!-- Dropwizard metrics --> - <dependency> - <groupId>io.dropwizard.metrics</groupId> - <artifactId>metrics-core</artifactId> - </dependency> - <dependency> - <groupId>io.dropwizard.metrics</groupId> - <artifactId>metrics-caffeine</artifactId> - </dependency> - <dependency> - <groupId>io.dropwizard.metrics</groupId> - <artifactId>metrics-jersey2</artifactId> - </dependency> - - <!-- Lucene --> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-core</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-queryparser</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-analysis-common</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-analysis-stempel</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-analysis-smartcn</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-analysis-kuromoji</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-facet</artifactId> - <version>${lucene.version}</version> - </dependency> - <dependency> - <groupId>org.apache.lucene</groupId> - <artifactId>lucene-misc</artifactId> - <version>${lucene.version}</version> - </dependency> - - - <!-- Swagger --> - <dependency> - <groupId>io.swagger.core.v3</groupId> - <artifactId>swagger-jaxrs2-jakarta</artifactId> - <version>${swagger.version}</version> - </dependency> - <dependency> - <groupId>io.swagger.core.v3</groupId> - <artifactId>swagger-jaxrs2-servlet-initializer-v2</artifactId> - <version>${swagger.version}</version> - </dependency> - - <!-- Test --> - <dependency> - <groupId>io.dropwizard</groupId> - <artifactId>dropwizard-testing</artifactId> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.junit.jupiter</groupId> - <artifactId>junit-jupiter</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.junit.jupiter</groupId> - <artifactId>junit-jupiter-engine</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.assertj</groupId> - <artifactId>assertj-core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-core</artifactId> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <defaultGoal>package</defaultGoal> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>3.4.1</version> - <configuration> - <shadedArtifactAttached>true</shadedArtifactAttached> - <shadedClassifierName>dist</shadedClassifierName> - <createDependencyReducedPom>true</createDependencyReducedPom> - <filters> - <filter> - <artifact>*:*</artifact> - <excludes> - <exclude>META-INF/*.DSA</exclude> - <exclude>META-INF/*.RSA</exclude> - <exclude>META-INF/*.SF</exclude> - </excludes> - </filter> - </filters> - <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <mainClass>org.apache.couchdb.nouveau.NouveauApplication</mainClass> - <manifestEntries> - <Multi-Release>true</Multi-Release> - </manifestEntries> - </transformer> - <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> - <resource>META-INF/versions</resource> - </transformer> - </transformers> - </configuration> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>2.22.2</version> - <configuration> - <excludedGroups>${project.tests.exclude}</excludedGroups> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> - <version>3.4.2</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <version>3.5.0</version> - <executions> - <execution> - <goals> - <goal>sources</goal> - <goal>resolve</goal> - </goals> - <configuration> - <classifier>javadoc</classifier> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>3.3.0</version> - <configuration> - <archive> - <manifest> - <addDefaultImplementationEntries>true</addDefaultImplementationEntries> - </manifest> - </archive> - </configuration> - </plugin> - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.8.9</version> - <executions> - <execution> - <goals> - <goal>prepare-agent</goal> - </goals> - </execution> - <!-- attached to Maven test phase --> - <execution> - <id>report</id> - <phase>test</phase> - <goals> - <goal>report</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <profiles> - <profile> - <id>allTests</id> - <properties> - <project.tests.exclude></project.tests.exclude> - </properties> - </profile> - </profiles> - -</project> diff --git a/nouveau/settings.gradle b/nouveau/settings.gradle new file mode 100644 index 000000000..711195b60 --- /dev/null +++ b/nouveau/settings.gradle @@ -0,0 +1,5 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +rootProject.name = 'server' diff --git a/src/docs/src/install/unix.rst b/src/docs/src/install/unix.rst index 8eff02d05..73393507d 100644 --- a/src/docs/src/install/unix.rst +++ b/src/docs/src/install/unix.rst @@ -153,7 +153,6 @@ You should have the following installed: * `Python (>=3.6) for docs and tests <http://python.org/>`_ * `Python Sphinx (>=1.1.3) <http://pypi.python.org/pypi/Sphinx>`_ * Java (required for `nouveau`, minimum version 11, recommended version 19 or 20) -* Apache Maven (required for `nouveau`, 3.x) You will only need libcurl if you plan to run the JavaScript test suite. And help2man is only need if you plan on installing the CouchDB man pages. |