forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the 3 main classes out of RFS into their own projects and update…
…d the migration console to pull them onto its image. I dropped the "RFS" prefix when not appropriate and placed the work 'migration' at the end of docs migration and metadata migration to make command completion more unique. Signed-off-by: Greg Schohn <greg.schohn@gmail.com>
- Loading branch information
1 parent
5aa7682
commit 67bdd19
Showing
10 changed files
with
200 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
id 'application' | ||
id 'java' | ||
id 'jacoco' | ||
id 'io.freefair.lombok' version '8.6' | ||
} | ||
|
||
import org.opensearch.migrations.common.CommonUtils | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_11 | ||
java.targetCompatibility = JavaVersion.VERSION_11 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation project(":commonDependencyVersionConstraints") | ||
|
||
implementation project(":RFS") | ||
implementation group: 'com.beust', name: 'jcommander' | ||
implementation group: 'org.slf4j', name: 'slf4j-api' | ||
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j2-impl' | ||
} | ||
|
||
application { | ||
mainClassName = 'com.rfs.CreateSnapshot' | ||
} | ||
|
||
// Utility task to allow copying required libraries into a 'dependencies' folder for security scanning | ||
tasks.register('copyDependencies', Sync) { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
|
||
from configurations.runtimeClasspath | ||
into "${buildDir}/dependencies" | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.required = true | ||
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml") | ||
html.required = true | ||
html.destination file("${buildDir}/reports/jacoco/test/html") | ||
} | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
id 'application' | ||
id 'java' | ||
id 'jacoco' | ||
id 'io.freefair.lombok' version '8.6' | ||
} | ||
|
||
import org.opensearch.migrations.common.CommonUtils | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_11 | ||
java.targetCompatibility = JavaVersion.VERSION_11 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation project(":commonDependencyVersionConstraints") | ||
|
||
implementation project(":RFS") | ||
implementation group: 'com.beust', name: 'jcommander' | ||
implementation group: 'org.slf4j', name: 'slf4j-api' | ||
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j2-impl' | ||
} | ||
|
||
application { | ||
mainClassName = 'com.rfs.RfsMigrateDocuments' | ||
} | ||
|
||
// Utility task to allow copying required libraries into a 'dependencies' folder for security scanning | ||
tasks.register('copyDependencies', Sync) { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
|
||
from configurations.runtimeClasspath | ||
into "${buildDir}/dependencies" | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.required = true | ||
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml") | ||
html.required = true | ||
html.destination file("${buildDir}/reports/jacoco/test/html") | ||
} | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
id 'application' | ||
id 'java' | ||
id 'jacoco' | ||
id 'io.freefair.lombok' version '8.6' | ||
} | ||
|
||
import org.opensearch.migrations.common.CommonUtils | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_11 | ||
java.targetCompatibility = JavaVersion.VERSION_11 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation project(":commonDependencyVersionConstraints") | ||
|
||
implementation project(":RFS") | ||
implementation group: 'com.beust', name: 'jcommander' | ||
implementation group: 'org.slf4j', name: 'slf4j-api' | ||
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j2-impl' | ||
} | ||
|
||
application { | ||
mainClassName = 'com.rfs.MetadataMigration' | ||
} | ||
|
||
// Utility task to allow copying required libraries into a 'dependencies' folder for security scanning | ||
tasks.register('copyDependencies', Sync) { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
|
||
from configurations.runtimeClasspath | ||
into "${buildDir}/dependencies" | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.required = true | ||
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml") | ||
html.required = true | ||
html.destination file("${buildDir}/reports/jacoco/test/html") | ||
} | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters