Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom plugin repositories support #5

Open
wants to merge 2 commits into
base: gradle2
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions IdeaConfigConverter/gradle/root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ buildscript {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
//${plugin_repositories}
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '${gradlefx.version}'
Expand Down
4 changes: 4 additions & 0 deletions IdeaConfigConverter/src/converter/dom/ModuleRoot.as
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,9 @@ package converter.dom {
return _xml.repositories.length() ? _xml.repositories[0] : null;
}

public function get pluginRepositories() : XML {
return _xml.pluginRepositories.length() ? _xml.pluginRepositories[0] : null;
}

}
}
3 changes: 3 additions & 0 deletions IdeaConfigConverter/src/converter/pom/RootPom.as
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ package converter.pom {
if (moduleRoot.repositories) {
template = StringUtil.replace(template, "//${repositories}", generateByRepositories(moduleRoot.repositories.children()));
}
if (moduleRoot.pluginRepositories) {
template = StringUtil.replace(template, "//${plugin_repositories}", generateByRepositories(moduleRoot.pluginRepositories.children()));
}
// template=template.replace("${flex.framework.version}", getFullSDKVersion(iml.sdkVersion));
// template=template.replace("${flash.player.version}", iml.flashPlayerVersion);
// template=template.replace("${artifactId}", iml.name);
Expand Down