Commit 6f93b455 authored by liaozan's avatar liaozan 🏀

Update the default branch of generated project

parent e1f0030f
......@@ -37,7 +37,7 @@ public class MavenUtils {
private static final File SETTINGS_FILE = new File(MavenCli.USER_MAVEN_CONFIGURATION_HOME, "settings.xml");
private static final List<String> ADDITIONAL_BRANCHES = List.of("release", "develop");
private static final List<String> ADDITIONAL_BRANCHES = List.of("release", "main");
static {
System.getProperties().setProperty(MULTIMODULE_PROJECT_DIRECTORY, "$M2_HOME");
......@@ -74,7 +74,7 @@ public class MavenUtils {
private static void initGitRepo(Path directory, Long repoGroupId, ArchetypeGenerateParam param) {
try {
Git git = Git.init().setInitialBranch("main").setDirectory(directory.toFile()).call();
Git git = Git.init().setInitialBranch("develop").setDirectory(directory.toFile()).call();
git.add().addFilepattern(".").call();
git.commit().setAllowEmpty(true).setAuthor("initializer", "no-reply@schbrain.com").setMessage("Initial Commit").call();
......
......@@ -6,16 +6,16 @@
"build": "vite build --mode production"
},
"dependencies": {
"vue": "^3.2.41",
"vue": "^3.2.44",
"axios": "^1.1.3",
"ant-design-vue": "^3.2.13",
"ant-design-vue": "^3.2.15",
"highlight.js": "^11.6.0",
"@highlightjs/vue-plugin": "^2.1.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.2.0",
"typescript": "^4.8.4",
"vite": "^3.2.2",
"vite": "^3.2.3",
"vue-tsc": "^1.0.9"
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment