Skip to content

Commit

Permalink
Use forms-compiler from maven repository for Rider and Python snapsho…
Browse files Browse the repository at this point in the history
…t builds

Fixes #403
  • Loading branch information
zolotov committed Oct 30, 2019
1 parent 943f382 commit 24842c7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 1 addition & 5 deletions examples/rider-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
intellij {
version 'RD-2018.1'
}

instrumentCode {
javac2 project.file('lib/javac2.jar')
version 'RD-2019.3-SNAPSHOT'
}
Binary file removed examples/rider-plugin/lib/javac2.jar
Binary file not shown.
11 changes: 10 additions & 1 deletion src/main/groovy/org/jetbrains/intellij/IntelliJPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,16 @@ class IntelliJPlugin implements Plugin<Project> {
conventionMapping('compilerVersion', {
def version = extension.version ?: DEFAULT_IDEA_VERSION
if (version.endsWith('-SNAPSHOT')) {
return extension.type == 'CL' ? "CLION-$version".toString() : version
if (extension.type == 'CL') {
return "CLION-$version".toString()
}
if (extension.type == 'RD') {
return "RIDER-$version".toString()
}
if (extension.type == 'PY' || extension.type == 'PC') {
return "PYCHARM-$version".toString()
}
return version
}
return IdeVersion.createIdeVersion(ideaDependency.buildNumber).asStringWithoutProductCode()
})
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/org/jetbrains/intellij/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class Utils {
return targetDirectory
}

private static def MAJOR_VERSION_PATTERN = Pattern.compile('\\d{4}\\.\\d-SNAPSHOT')
private static def MAJOR_VERSION_PATTERN = Pattern.compile('(RIDER-)?\\d{4}\\.\\d-SNAPSHOT')
static String releaseType(@NotNull String version) {
if (version.endsWith('-EAP-SNAPSHOT') || version.endsWith('-EAP-CANDIDATE-SNAPSHOT') || version.endsWith('-CUSTOM-SNAPSHOT') || MAJOR_VERSION_PATTERN.matcher(version).matches()) {
return 'snapshots'
Expand Down

0 comments on commit 24842c7

Please sign in to comment.