-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #725 from gregschohn/SplitRfsPhasesIntoSeparateGra…
…dleProjects Move the 3 main classes out of RFS into their own projects and put them onto the migration console
- Loading branch information
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