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
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,19 +383,6 @@ jobs:
FLAMINGOCK_JRELEASER_GPG_SECRET_KEY: ${{ secrets.FLAMINGOCK_JRELEASER_GPG_SECRET_KEY }}
FLAMINGOCK_JRELEASER_GPG_PASSPHRASE: ${{ secrets.FLAMINGOCK_JRELEASER_GPG_PASSPHRASE }}

flamingock-sql-template:
needs: [ build ]
uses: ./.github/workflows/module-release-graalvm.yml
with:
module: flamingock-sql-template
secrets:
FLAMINGOCK_JRELEASER_GITHUB_TOKEN: ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }}
FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }}
FLAMINGOCK_JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_PASSWORD }}
FLAMINGOCK_JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.FLAMINGOCK_JRELEASER_GPG_PUBLIC_KEY }}
FLAMINGOCK_JRELEASER_GPG_SECRET_KEY: ${{ secrets.FLAMINGOCK_JRELEASER_GPG_SECRET_KEY }}
FLAMINGOCK_JRELEASER_GPG_PASSPHRASE: ${{ secrets.FLAMINGOCK_JRELEASER_GPG_PASSPHRASE }}

general-util:
needs: [ build ]
uses: ./.github/workflows/module-release-graalvm.yml
Expand Down Expand Up @@ -552,7 +539,6 @@ jobs:
dynamodb-target-system,
couchbase-external-system-api,
couchbase-target-system,
flamingock-sql-template,
general-util,
test-util,
mongodb-util,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ val externalSystemProjects = setOf(
"sql-external-system-api"
)

val templateProjects = setOf(
"flamingock-sql-template"
)

val utilProjects = setOf(
"general-util",
"test-util",
Expand All @@ -69,7 +65,7 @@ val legacyProjects = setOf(
"mongock-importer-couchbase"
)

val allProjects = coreProjects + cloudProjects + communityProjects + pluginProjects + targetSystemProjects + externalSystemProjects + templateProjects + utilProjects + legacyProjects
val allProjects = coreProjects + cloudProjects + communityProjects + pluginProjects + targetSystemProjects + externalSystemProjects + utilProjects + legacyProjects

// Project classification utilities
fun Project.isBomModule(): Boolean = name.endsWith("-bom")
Expand All @@ -83,7 +79,6 @@ fun Project.getProjectCategory(): String? = when (name) {
in pluginProjects -> "plugins"
in targetSystemProjects -> "targetSystems"
in externalSystemProjects -> "externalSystems"
in templateProjects -> "templates"
in utilProjects -> "utils"
in legacyProjects -> "legacy"
else -> null
Expand All @@ -97,7 +92,6 @@ fun getProjectsForBundle(bundle: String?): Set<String> = when (bundle) {
"plugins" -> pluginProjects
"targetSystems" -> targetSystemProjects
"externalSystems" -> externalSystemProjects
"templates" -> templateProjects
"utils" -> utilProjects
"legacy" -> legacyProjects
"all" -> allProjects
Expand All @@ -111,7 +105,6 @@ extra["communityProjects"] = communityProjects
extra["pluginProjects"] = pluginProjects
extra["targetSystemProjects"] = targetSystemProjects
extra["externalSystemProjects"] = externalSystemProjects
extra["templateProjects"] = templateProjects
extra["utilProjects"] = utilProjects
extra["legacyProjects"] = legacyProjects
extra["allProjects"] = allProjects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ val projectsToRelease = if (module != null) {
val pluginProjects = project.extra["pluginProjects"] as Set<String>
val targetSystemProjects = project.extra["targetSystemProjects"] as Set<String>
val externalSystemProjects = project.extra["externalSystemProjects"] as Set<String>
val templateProjects = project.extra["templateProjects"] as Set<String>
val utilProjects = project.extra["utilProjects"] as Set<String>
val legacyProjects = project.extra["legacyProjects"] as Set<String>

Expand All @@ -43,7 +42,6 @@ val projectsToRelease = if (module != null) {
"plugins" -> pluginProjects
"targetSystems" -> targetSystemProjects
"externalSystems" -> externalSystemProjects
"templates" -> templateProjects
"utils" -> utilProjects
"legacy" -> legacyProjects
"all" -> allProjects
Expand Down
4 changes: 1 addition & 3 deletions community/flamingock-community-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ dependencies {
api("io.flamingock:flamingock-auditstore-dynamodb:$version")
api("io.flamingock:flamingock-auditstore-sql:$version")
api("io.flamingock:flamingock-test-support:${version}")
api("io.flamingock:flamingock-sql-template:$version")
api("io.flamingock:flamingock-mongodb-sync-template:${version}")
Comment on lines -15 to -16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should stay. The BOM is to hold all the versions.
This means that we need to extract the BOM as well.
Also we probably need to create a pipeline that release everything, one after the other

api("io.flamingock:flamingock-springboot-integration:${version}")
api("io.flamingock:flamingock-springboot-test-support:${version}")
api("io.flamingock:flamingock-graalvm:${version}")
api("io.flamingock:mongock-support:${version}")
}
}

description = "Bill of Materials for Community Edition dependency management"
description = "Bill of Materials for Community Edition dependency management"
3 changes: 1 addition & 2 deletions legacy/mongock-importer-mongodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies {
testImplementation(project(":legacy:mongock-support"))
testImplementation(project(":core:target-systems:mongodb-sync-target-system"))
testImplementation(project(":community:flamingock-auditstore-mongodb-sync"))
testImplementation(project(":templates:flamingock-mongodb-sync-template"))
testImplementation(project(":utils:test-util"))
testImplementation(project(":utils:mongodb-util"))

Expand Down Expand Up @@ -42,4 +41,4 @@ tasks.withType<JavaCompile>().configureEach {
}
configurations.testImplementation {
extendsFrom(configurations.compileOnly.get())
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2023 Flamingock (https://www.flamingock.io)
*
* 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.
*/
package io.flamingock.importer.mongock.mongodb.changes;

import com.mongodb.client.MongoDatabase;
import io.flamingock.api.annotations.Apply;
import io.flamingock.api.annotations.Change;
import io.flamingock.api.annotations.NonLockGuarded;
import io.flamingock.api.annotations.TargetSystem;

@TargetSystem( id = "mongodb-target-system")
@Change(id = "create-users-collection-with-index", author = "bercianor", transactional = false)
public class _0003__CreateUsersCollectionChange {

@Apply
public void apply(@NonLockGuarded MongoDatabase mongoDatabase) {
mongoDatabase.createCollection("users");
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright 2023 Flamingock (https://www.flamingock.io)
*
* 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.
*/
package io.flamingock.importer.mongock.mongodb.changes;

import com.mongodb.client.ClientSession;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import io.flamingock.api.annotations.Apply;
import io.flamingock.api.annotations.Change;
import io.flamingock.api.annotations.NonLockGuarded;
import io.flamingock.api.annotations.TargetSystem;
import org.bson.Document;

@TargetSystem( id = "mongodb-target-system")
@Change(id = "seed-users", author = "bercianor")
public class _0004__SeedUsersChange {

@Apply
public void apply(@NonLockGuarded MongoDatabase mongoDatabase, @NonLockGuarded ClientSession clientSession) {
MongoCollection<Document> collection = mongoDatabase.getCollection("users");
collection.insertMany(clientSession, java.util.Arrays.asList(
new Document().append("name", "Admin").append("email", "admin@company.com").append("roles", java.util.Arrays.asList("superuser")),
new Document().append("name", "Backup").append("email", "backup@company.com").append("roles", java.util.Arrays.asList("readonly"))
));
}
}

This file was deleted.

15 changes: 0 additions & 15 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,6 @@ include("core:target-systems:couchbase-target-system")
project(":core:target-systems:couchbase-target-system").projectDir = file("core/target-systems/couchbase-target-system")
project(":core:target-systems:couchbase-target-system").name = "couchbase-target-system"

//////////////////////////////////////
// TEMPLATES
//////////////////////////////////////

//SQL
include("templates:flamingock-sql-template")
project(":templates:flamingock-sql-template").name = "flamingock-sql-template"
project(":templates:flamingock-sql-template").projectDir = file("templates/flamingock-sql-template")


//MONGODB
include("templates:flamingock-mongodb-sync-template")
project(":templates:flamingock-mongodb-sync-template").name = "flamingock-mongodb-sync-template"
project(":templates:flamingock-mongodb-sync-template").projectDir = file("templates/flamingock-mongodb-sync-template")


//////////////////////////////////////
// UTILS
Expand Down
6 changes: 0 additions & 6 deletions templates/flamingock-mongodb-sync-template/TODO.md

This file was deleted.

33 changes: 0 additions & 33 deletions templates/flamingock-mongodb-sync-template/build.gradle.kts

This file was deleted.

This file was deleted.

Loading
Loading