Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following properties are configurable:
* ```storageEngine```: The name of the storage engine to use. Can be **'wiredTiger'** or **'mmapv1'** for MongoDB Community Edition (default is **'wiredTiger'** for Mongo 3.2 and later; otherwise it is **'mmapv1'**). Alternative distributions might support additional engines
* ```storageLocation```: The directory location from where embedded Mongo will run, such as ```/tmp/storage``` (defaults to a java temp directory)
* ```syncDelay```: The interval in seconds between fsync operations where mongod flushes its working memory to disk. See [syncdelay parameter](https://docs.mongodb.com/manual/reference/parameters/#param.syncdelay) for more information
* ```replicaSet```: Initializes a replica set with the specified name after mongod started (defaults to **null**)

### Tasks ###

Expand Down
49 changes: 25 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType

buildscript {
repositories {
maven {
Expand All @@ -9,7 +7,7 @@ buildscript {
}

plugins {
id 'com.gradle.plugin-publish' version '1.0.0'
id 'com.gradle.plugin-publish' version '1.2.1'
id 'maven-publish'
id 'groovy'
id 'idea'
Expand All @@ -19,34 +17,40 @@ plugins {
}

group = 'com.sourcemuse.gradle.plugin'
version = '2.0.1-SNAPSHOT'
version = '2.1.2-SNAPSHOT'

sourceCompatibility = 17
targetCompatibility = 17
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

repositories {
mavenCentral()
}

dependencies {
implementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:3.4.6'
implementation 'org.mongodb:mongo-java-driver:3.12.11'
implementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:4.21.0'
// Using 4.7 for maximal compatibility back to mongo 2.6 see https://www.mongodb.com/docs/drivers/java/sync/current/compatibility/
// On Ubuntu 22.04 some tests with mongo versions before 3.6 require libssl1.0.0
// you can get it from https://old-releases.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu13_amd64.deb
implementation 'org.mongodb:mongodb-driver-sync:4.7.2'

testImplementation 'org.spockframework:spock-core:2.1-groovy-3.0', {
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0', {
exclude module: 'groovy-all'
}
testImplementation 'org.littleshoot:littleproxy:1.1.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
tasks.register("javadocJar", Jar) {
dependsOn javadoc
archiveClassifier = 'javadoc'
from 'build/docs/javadoc'
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
tasks.register("sourcesJar", Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
Expand All @@ -64,7 +68,7 @@ publishing {
name = 'Gradle Mongo Plugin'
description = 'Gradle plugin for managing a local instance of MongoDb'
url = 'https://github.com/sourcemuse/GradleMongoPlugin'

licenses {
license {
name = 'The Apache License, Version 2.0'
Expand All @@ -89,7 +93,7 @@ publishing {
}
}
}
}
}
repositories {
maven {
name = 'ossSonatype'
Expand All @@ -106,18 +110,15 @@ signing {
sign publishing.publications.mavenJava
}

pluginBundle {
website = 'https://github.com/sourcemuse/GradleMongoPlugin'
vcsUrl = 'https://github.com/sourcemuse/GradleMongoPlugin'
tags = ['mongo', 'mongodb']
}

gradlePlugin {
website = 'https://github.com/sourcemuse/GradleMongoPlugin'
vcsUrl = 'https://github.com/sourcemuse/GradleMongoPlugin'
plugins {
mongoPlugin {
id = 'com.sourcemuse.mongo'
displayName = 'Gradle Mongo plugin'
description = 'Gradle plugin for running a managed instance of Mongo.'
tags = ['mongo', 'mongodb']
implementationClass = 'com.sourcemuse.gradle.plugin.flapdoodle.gradle.GradleMongoPlugin'
}
}
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading