-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3709f0d
commit d8e8ab2
Showing
1 changed file
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Gradle2Maven | ||
a simple tool to move gradle caches into maven local repo | ||
|
||
## usage: | ||
java11+: | ||
- run `java Gradle2Maven.java` to dry-run(will generate a config.properties) | ||
- check the dry-run log, if no problem, modify auto-geneated config.properties: set dryRun=false. if you're using custom gradle cache dir or maven local repo dir, set them in config.properties too. | ||
- run `java Gradle2Maven.java` again to move the caches. | ||
from next time, you can just run `java Gradle2Maven.java` once because there is already a config.properties. | ||
|
||
java8~java10: | ||
- compile at first: run `javac Gradle2Maven.java` to generate Gradle2Maven.class | ||
- run `java Gradle2Maven.class` to dry-run(will generate a config.properties) | ||
- check the dry-run log, if no problem, modify auto-geneated config.properties: set dryRun=false. if you're using custom gradle cache dir or maven local repo dir, set them in config.properties too. | ||
- run `java Gradle2Maven.class` again to move the caches. | ||
from next time, you can just run `java Gradle2Maven.class` once because there is already a config.properties. | ||
|
||
## default config | ||
default config values in `config.properties` | ||
|
||
`gradleCachePath`: `$GRADLE_USER_HOME/caches/modules-2/files-2.1` or `$USER_HOME/.gradle/caches/modules-2/files-2.1` if `$GRADLE_USER_HOME` not set | ||
|
||
`mavenLocalRepoPath`: `$M2_HOME/repository` or `$USER_HOME/.m2/repository` if `$M2_HOME` not set | ||
|
||
`dryRun`: `true` |