Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cSpell.words": [
"allprojects",
"buildscript",
"println"
]
}
32 changes: 32 additions & 0 deletions javaupgrade.module.coordinates.init.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
allprojects {
task printAllModuleCoordinates {
doLast {
allprojects.each { proj ->
// Skip root project and gradle plugin projects
if (proj.name == 'android' || proj.name == 'gradle') {
return
}

// Auto-configure group and version from project properties or use defaults
def group = proj.group ?: proj.rootProject.group ?: 'org.csploit'
def version = proj.version ?: proj.rootProject.version ?: '1.0.0'
def projectPath = proj.projectDir?.absolutePath ?: 'undefined'

// Get the module name (e.g., 'cSploit' from ':cSploit')
def moduleName = proj.name

// Format: MODULE_COORD: :module_path|group|artifact_name|version|absolute_path
println "MODULE_COORD: " + proj.path + "|" + group + "|" + moduleName + "|" + version + "|" + projectPath
}
}
}

// Auto-configure standard properties if not already set
if (!hasProperty('group')) {
group = 'org.csploit'
}

if (!hasProperty('version')) {
version = '1.0.0'
}
}