Skip to content

Commit

Permalink
feat: change group name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshouheng committed Dec 8, 2022
1 parent 21b5345 commit 901f341
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions appshell/sources.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def parseSourcesConfiguration(sourceSwitches) {
source.children.each { child ->
children.add(new SourceSwitchChild(child.name, child.path))
}
def sourceSwitch = new SourceSwitch(source.name, source.url, source.branch, source.artifact, source.open, children)
def sourceSwitch = new SourceSwitch(source.name, source.url, source.branch, source.group, source.open, children)
sourceSwitches.put(source.name, sourceSwitch)
}
}
Expand Down Expand Up @@ -80,7 +80,7 @@ def replaceDependenciesWithSources(sourceSwitches) {
resolutionStrategy.dependencySubstitution {
sourceSwitches.forEach { name, sourceSwitch ->
sourceSwitch.children.each { child ->
substitute module("${sourceSwitch.artifact}:${child.name}") with project(":${child.name}")
substitute module("${sourceSwitch.group}:${child.name}") with project(":${child.name}")
}
}
}
Expand All @@ -93,20 +93,20 @@ class SourceSwitch {
def name
def url
def branch
def artifact
def group
def open
def children

SourceSwitch(def name,
def url,
def branch,
def artifact,
def group,
def open,
def children) {
this.name = name
this.url = url
this.branch = branch
this.artifact = artifact
this.group = group
this.open = open
this.children = children
}
Expand All @@ -117,7 +117,7 @@ class SourceSwitch {
"name=" + name +
", url=" + url +
", branch=" + branch +
", artifact=" + artifact +
", group=" + group +
", open=" + open +
", children=" + children +
'}';
Expand Down
2 changes: 1 addition & 1 deletion appshell/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "AndroidUtils",
"url": "[email protected]:Shouheng88/AndroidUtils.git",
"branch": "feature-2.8.0",
"artifact": "com.github.Shouheng88",
"group": "com.github.Shouheng88",
"open": true,
"children": [
{
Expand Down

0 comments on commit 901f341

Please sign in to comment.