Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: plugin 6.3.5, gradle 8.0.2, jakarta validation, cleanup #166

Merged
merged 1 commit into from
Mar 13, 2023
Merged
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
6 changes: 0 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
plugins {
id "io.micronaut.build.internal.docs"
id "io.micronaut.build.internal.dependency-updates"
id "io.micronaut.build.internal.quality-reporting"
id "io.micronaut.internal.build.microstream-rest-cli"
}

micronautBuild {
sourceCompatibility = "17"
targetCompatibility = "17"
}

repositories {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ plugins {
id "io.micronaut.internal.build.microstream-base"
}

configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module("io.micronaut:micronaut-jackson-databind"))
.using(module("io.micronaut.serde:micronaut-serde-jackson:${libs.versions.micronaut.serde.get()}"))
}
}

tasks.named('test') {
useJUnitPlatform()
}

java {
sourceCompatibility = JavaVersion.toVersion("17")
targetCompatibility = JavaVersion.toVersion("17")
}
5 changes: 0 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
projectVersion=2.0.0-SNAPSHOT
projectGroup=io.micronaut.microstream

micronautDocsVersion=2.0.0
micronautVersion=4.0.0-SNAPSHOT
groovyVersion=4.0.5
spockVersion=2.3-groovy-4.0

title=Micronaut MicroStream
projectDesc=Micronaut integration with MicroStream
projectUrl=https://micronaut.io
Expand Down
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[versions]
micronaut-docs = "2.0.0"
micronaut = "4.0.0-SNAPSHOT"
groovy = "4.0.10"
kotlin = "1.8.10"
spock = "2.3-groovy-4.0"

managed-microstream='07.01.00-MS-GA'

micronaut-cache = "4.0.0-SNAPSHOT"
Expand All @@ -24,3 +30,4 @@ microstream-persistence-binary-jdk17 = { module = 'one.microstream:microstream-p
jupiter-jupiter-params = { module = 'org.junit.jupiter:junit-jupiter-params' }
jupiter-api = { module = 'org.junit.jupiter:junit-jupiter-api' }
junit-jupiter-engine = { module = 'org.junit.jupiter:junit-jupiter-engine' }
kotlin-stdlib = { module = 'org.jetbrains.kotlin:kotlin-stdlib-jdk8', version.ref = 'kotlin' }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import io.micronaut.context.annotation.ConfigurationProperties;
import io.micronaut.core.annotation.NonNull;
import io.micronaut.core.util.StringUtils;
import javax.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotBlank;

/**
* Configuration properties for the {@link MicroStreamRestController}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.micronaut.serde.annotation.Serdeable;
import one.microstream.storage.restadapter.types.ViewerRootDescription;

import javax.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotBlank;

/**
* This object represents a root object for the MicroStream REST api.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.micronaut.core.beans.BeanIntrospection
import io.micronaut.serde.ObjectMapper
import spock.lang.Specification

import javax.validation.Validator
import jakarta.validation.Validator

class RootObjectSpec extends Specification {

Expand Down
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pluginManagement {
}

plugins {
id 'io.micronaut.build.shared.settings' version '6.3.1'
id 'io.micronaut.build.shared.settings' version '6.3.5'
}

rootProject.name = 'microstream-parent'
Expand All @@ -27,6 +27,7 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

micronautBuild {
addSnapshotRepository()
useStandardizedProjectNames = true
importMicronautCatalog()
importMicronautCatalog("micronaut-cache")
importMicronautCatalog("micronaut-micrometer")
Expand Down
5 changes: 1 addition & 4 deletions test-suite-groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ plugins {
}

dependencies {
testImplementation(platform("io.micronaut:micronaut-bom:$micronautVersion"))
testImplementation(platform(mn.micronaut.core.bom))
testCompileOnly(mn.micronaut.inject.groovy)
testImplementation(projects.micronautMicrostreamAnnotations)
testImplementation(mnValidation.micronaut.validation)
testImplementation(mnSerde.micronaut.serde.jackson)
testImplementation("org.spockframework:spock-core:${spockVersion}") {
exclude module: 'groovy-all'
}
testImplementation(mnTest.micronaut.test.spock)
testImplementation(mn.micronaut.http.server.netty)
testImplementation(mn.micronaut.http.client)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.micronaut.core.annotation.Introspected
import io.micronaut.core.annotation.NonNull
import io.micronaut.core.annotation.Nullable

import javax.validation.constraints.NotBlank
import jakarta.validation.constraints.NotBlank

@Introspected
class Customer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import io.micronaut.http.annotation.Post
import io.micronaut.http.annotation.Status
import io.micronaut.http.uri.UriBuilder

import javax.validation.Valid
import javax.validation.constraints.NotNull
import jakarta.validation.Valid
import jakarta.validation.constraints.NotNull

@Controller("/customer")
class CustomerController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package io.micronaut.microstream.docs

import io.micronaut.core.annotation.NonNull

import javax.validation.Valid
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull
import jakarta.validation.Valid
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull

interface CustomerRepository {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import jakarta.inject.Singleton
import one.microstream.concurrency.XThreads
import one.microstream.storage.types.StorageManager

import javax.validation.Valid
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull
import jakarta.validation.Valid
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import java.util.function.Supplier

@Requires(property = "customer.repository", value = "embedded-storage-manager")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import io.micronaut.microstream.annotations.Store
import io.micronaut.microstream.annotations.StoreParams
import io.micronaut.microstream.annotations.StoreReturn
import jakarta.inject.Singleton
import javax.validation.Valid
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull
import jakarta.validation.Valid
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull

@Requires(property = "customer.repository", value = "store")
//tag::clazz[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.micronaut.microstream.docs
import io.micronaut.core.annotation.Introspected
import io.micronaut.core.annotation.NonNull
import io.micronaut.core.annotation.Nullable
import javax.validation.constraints.NotBlank
import jakarta.validation.constraints.NotBlank

@Introspected
class CustomerSave {
Expand Down
13 changes: 3 additions & 10 deletions test-suite-kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

dependencies {
kaptTest(platform("io.micronaut:micronaut-bom:$micronautVersion"))
kaptTest(platform(mn.micronaut.core.bom))
kaptTest(projects.micronautMicrostreamAnnotations)
kaptTest(mnSerde.micronaut.serde.processor)

testImplementation(platform("io.micronaut:micronaut-bom:$micronautVersion"))
testImplementation(platform(mn.micronaut.core.bom))
testImplementation(projects.micronautMicrostreamAnnotations)

testImplementation(mnValidation.micronaut.validation)
Expand All @@ -20,7 +20,7 @@ dependencies {
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(mn.logback.classic)
testRuntimeOnly(mn.snakeyaml)
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10"
testImplementation libs.kotlin.stdlib
kaptTest(mn.micronaut.inject.java)

testImplementation(mn.micronaut.http.server.netty)
Expand All @@ -29,10 +29,3 @@ dependencies {
testImplementation(libs.jupiter.jupiter.params)
testImplementation(projects.micronautMicrostreamCache)
}

compileTestKotlin {
kotlinOptions {
jvmTarget = '17'
javaParameters = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import io.micronaut.http.annotation.Delete
import io.micronaut.http.annotation.Status
import io.micronaut.http.annotation.PathVariable
import io.micronaut.http.uri.UriBuilder
import javax.validation.Valid
import jakarta.validation.Valid

@Controller("/customer")
internal class CustomerController(private val repository: CustomerRepository) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.micronaut.microstream.docs

import javax.validation.Valid
import javax.validation.constraints.NotBlank
import jakarta.validation.Valid
import jakarta.validation.constraints.NotBlank

interface CustomerRepository {
fun save(customerSave: @Valid CustomerSave): Customer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import jakarta.inject.Singleton
import one.microstream.concurrency.XThreads
import one.microstream.storage.types.StorageManager
import java.util.*
import javax.validation.constraints.NotBlank
import jakarta.validation.constraints.NotBlank

@Requires(property = "customer.repository", value = "embedded-storage-manager")
//tag::clazz[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import io.micronaut.microstream.annotations.StoreParams
import io.micronaut.microstream.annotations.StoreReturn
import jakarta.inject.Singleton
import java.util.*
import javax.validation.Valid
import javax.validation.constraints.NotBlank
import jakarta.validation.Valid
import jakarta.validation.constraints.NotBlank

@Requires(property = "customer.repository", value = "store")
//tag::clazz[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.micronaut.microstream.docs

import io.micronaut.core.annotation.Introspected
import javax.validation.constraints.NotBlank
import jakarta.validation.constraints.NotBlank

@Introspected
data class CustomerSave(
Expand Down
4 changes: 2 additions & 2 deletions test-suite/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ plugins {
}

dependencies {
testAnnotationProcessor(platform("io.micronaut:micronaut-bom:$micronautVersion"))
testAnnotationProcessor(platform(mn.micronaut.core.bom))
testAnnotationProcessor(projects.micronautMicrostreamAnnotations)
testAnnotationProcessor(mn.micronaut.inject.java)
testAnnotationProcessor(mnValidation.micronaut.validation.processor)
testAnnotationProcessor(mnSerde.micronaut.serde.processor)

testImplementation(platform("io.micronaut:micronaut-bom:$micronautVersion"))
testImplementation(platform(mn.micronaut.core.bom))
testImplementation(mnValidation.micronaut.validation)
testImplementation(mnSerde.micronaut.serde.jackson)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import io.micronaut.core.annotation.NonNull;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

public interface CrmCustomerService {
@NonNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import jakarta.inject.Singleton;
import one.microstream.storage.types.StorageManager;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

@Requires(property = "spec.service", value = "store")
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import jakarta.inject.Singleton;
import one.microstream.storage.types.StorageManager;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

@Requires(property = "spec.service", value = "store-return")
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import io.micronaut.core.annotation.Nullable;
import io.micronaut.serde.annotation.Serdeable;

import javax.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotBlank;

@Serdeable // <1>
public class Customer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import io.micronaut.http.annotation.Status;
import io.micronaut.http.uri.UriBuilder;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import java.util.Optional;
import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import io.micronaut.core.annotation.NonNull;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Collection;
import java.util.Optional;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import one.microstream.concurrency.XThreads;
import one.microstream.storage.types.StorageManager;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import jakarta.inject.Singleton;
import one.microstream.storage.types.StorageManager;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Optional;
import java.util.UUID;

Expand Down
Loading