mirror of
				https://github.com/JetBrains/intellij-platform-plugin-template.git
				synced 2025-06-13 13:04:09 +00:00 
			
		
		
		
	Integration with IntelliJ Plugin Verifier through the Gradle IntelliJ Plugin runPluginVerifier task
				
					
				
			This commit is contained in:
		
							parent
							
								
									14fe3343f0
								
							
						
					
					
						commit
						2de45ab6ce
					
				
							
								
								
									
										4
									
								
								.github/template-cleanup/gradle.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/template-cleanup/gradle.properties
									
									
									
									
										vendored
									
									
								
							| @ -6,12 +6,14 @@ pluginName_ = %NAME% | |||||||
| pluginVersion = 0.0.1 | pluginVersion = 0.0.1 | ||||||
| pluginSinceBuild = 193 | pluginSinceBuild = 193 | ||||||
| pluginUntilBuild = 202.* | pluginUntilBuild = 202.* | ||||||
|  | # Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl | ||||||
|  | pluginVerifierIdeVersions = IC-2019.3, IC-2020.1, IC-2020.2 | ||||||
| 
 | 
 | ||||||
| platformType = IC | platformType = IC | ||||||
| platformVersion = 2019.3 | platformVersion = 2019.3 | ||||||
| platformDownloadSources = true | platformDownloadSources = true | ||||||
| # Plugin Dependencies -> https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html | # Plugin Dependencies -> https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html | ||||||
| # Example: platformPlugins = com.intellij.java,com.jetbrains.php:203.4449.22 | # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 | ||||||
| platformPlugins = | platformPlugins = | ||||||
| 
 | 
 | ||||||
| # Opt-out flag for bundling Kotlin standard library. | # Opt-out flag for bundling Kotlin standard library. | ||||||
|  | |||||||
							
								
								
									
										44
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										44
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @ -145,31 +145,33 @@ jobs: | |||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
| 
 | 
 | ||||||
|       # Download plugin artifact provided by the previous job |       # Setup Java 1.8 environment for the next steps | ||||||
|       - name: Download Artifact |       - name: Setup Java | ||||||
|         uses: actions/download-artifact@v1 |         uses: actions/setup-java@v1 | ||||||
|         with: |         with: | ||||||
|           name: plugin-artifact |           java-version: 1.8 | ||||||
|  | 
 | ||||||
|  |       # Check out current repository | ||||||
|  |       - name: Fetch Sources | ||||||
|  |         uses: actions/checkout@v2 | ||||||
|  | 
 | ||||||
|  |       # Cache Gradle Dependencies | ||||||
|  |       - name: Setup Gradle Dependencies Cache | ||||||
|  |         uses: actions/cache@v2 | ||||||
|  |         with: | ||||||
|  |           path: ~/.gradle/caches | ||||||
|  |           key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }} | ||||||
|  | 
 | ||||||
|  |       # Cache Gradle Wrapper | ||||||
|  |       - name: Setup Gradle Wrapper Cache | ||||||
|  |         uses: actions/cache@v2 | ||||||
|  |         with: | ||||||
|  |           path: ~/.gradle/wrapper | ||||||
|  |           key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | ||||||
| 
 | 
 | ||||||
|       # Run IntelliJ Plugin Verifier action using GitHub Action |       # Run IntelliJ Plugin Verifier action using GitHub Action | ||||||
|       - name: Verify Plugin |       - name: Verify Plugin | ||||||
|         id: verify |         run: ./gradlew runPluginVerifier | ||||||
|         uses: ChrisCarini/intellij-platform-plugin-verifier-action@v0.0.2 |  | ||||||
|         with: |  | ||||||
|           plugin-location: plugin-artifact/*.zip |  | ||||||
|           ide-versions: | |  | ||||||
|             ideaIC:2019.3 |  | ||||||
|             ideaIC:2020.1 |  | ||||||
|             ideaIC:2020.2 |  | ||||||
| 
 |  | ||||||
|       # Print the output of the verify step |  | ||||||
|       - name: Print Logs |  | ||||||
|         if: ${{ always() }} |  | ||||||
|         env: |  | ||||||
|           OUTPUT_LOG: ${{ steps.verify.outputs.verification-output-log-filename }} |  | ||||||
|         run: | |  | ||||||
|           echo "The verifier log file [$OUTPUT_LOG] contents : " ; |  | ||||||
|           cat $OUTPUT_LOG |  | ||||||
| 
 | 
 | ||||||
|   # Prepare a draft release for GitHub Releases page for the manual verification |   # Prepare a draft release for GitHub Releases page for the manual verification | ||||||
|   # If accepted and published, release workflow would be triggered |   # If accepted and published, release workflow would be triggered | ||||||
|  | |||||||
| @ -3,13 +3,19 @@ | |||||||
| # IntelliJ Platform Plugin Template Changelog | # IntelliJ Platform Plugin Template Changelog | ||||||
| 
 | 
 | ||||||
| ## [Unreleased] | ## [Unreleased] | ||||||
|  | ### Added | ||||||
|  | - Integration with [IntelliJ Plugin Verifier](https://github.com/JetBrains/intellij-plugin-verifier) through the [Gradle IntelliJ Plugin](https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl) `runPluginVerifier` task | ||||||
|  | 
 | ||||||
| ### Changed | ### Changed | ||||||
| - Switch Gradle Wrapper to `-all` to improve the IntelliSense | - Switch Gradle Wrapper to `-all` to improve the IntelliSense | ||||||
| - Update detekt config to be in line with IJ settings | - Update detekt config to be in line with IJ settings | ||||||
| - Dependencies - upgrade `io.gitlab.arturbosch.detekt` to `1.14.2` | - Dependencies - upgrade `io.gitlab.arturbosch.detekt` to `1.14.2` | ||||||
| - Dependencies - upgrade `org.jetbrains.intellij` to `0.5.1` | - Dependencies - upgrade `org.jetbrains.intellij` to `0.6.1` | ||||||
| - GitHub Actions - `gradleValidation` update to `gradle/wrapper-validation-action@v1.0.3` | - GitHub Actions - `gradleValidation` update to `gradle/wrapper-validation-action@v1.0.3` | ||||||
| 
 | 
 | ||||||
|  | ### Removed | ||||||
|  | - Remove Third-party IntelliJ Plugin Verifier GitHub Action | ||||||
|  | 
 | ||||||
| ## [0.5.1] | ## [0.5.1] | ||||||
| ### Added | ### Added | ||||||
| - Missing properties in the `gradle.properties` template file | - Missing properties in the `gradle.properties` template file | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ plugins { | |||||||
|     // Kotlin support |     // Kotlin support | ||||||
|     id("org.jetbrains.kotlin.jvm") version "1.4.10" |     id("org.jetbrains.kotlin.jvm") version "1.4.10" | ||||||
|     // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin |     // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin | ||||||
|     id("org.jetbrains.intellij") version "0.5.1" |     id("org.jetbrains.intellij") version "0.6.1" | ||||||
|     // gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin |     // gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin | ||||||
|     id("org.jetbrains.changelog") version "0.6.2" |     id("org.jetbrains.changelog") version "0.6.2" | ||||||
|     // detekt linter - read more: https://detekt.github.io/detekt/gradle.html |     // detekt linter - read more: https://detekt.github.io/detekt/gradle.html | ||||||
| @ -26,6 +26,7 @@ val pluginName_: String by project | |||||||
| val pluginVersion: String by project | val pluginVersion: String by project | ||||||
| val pluginSinceBuild: String by project | val pluginSinceBuild: String by project | ||||||
| val pluginUntilBuild: String by project | val pluginUntilBuild: String by project | ||||||
|  | val pluginVerifierIdeVersions: String by project | ||||||
| 
 | 
 | ||||||
| val platformType: String by project | val platformType: String by project | ||||||
| val platformVersion: String by project | val platformVersion: String by project | ||||||
| @ -114,6 +115,10 @@ tasks { | |||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     runPluginVerifier { | ||||||
|  |         ideVersions(pluginVerifierIdeVersions) | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     publishPlugin { |     publishPlugin { | ||||||
|         dependsOn("patchChangelog") |         dependsOn("patchChangelog") | ||||||
|         token(System.getenv("PUBLISH_TOKEN")) |         token(System.getenv("PUBLISH_TOKEN")) | ||||||
|  | |||||||
| @ -6,12 +6,14 @@ pluginName_ = IntelliJ Platform Plugin Template | |||||||
| pluginVersion = 0.5.1 | pluginVersion = 0.5.1 | ||||||
| pluginSinceBuild = 193 | pluginSinceBuild = 193 | ||||||
| pluginUntilBuild = 202.* | pluginUntilBuild = 202.* | ||||||
|  | # Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl | ||||||
|  | pluginVerifierIdeVersions = IC-2019.3, IC-2020.1, IC-2020.2 | ||||||
| 
 | 
 | ||||||
| platformType = IC | platformType = IC | ||||||
| platformVersion = 2019.3 | platformVersion = 2019.3 | ||||||
| platformDownloadSources = true | platformDownloadSources = true | ||||||
| # Plugin Dependencies -> https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html | # Plugin Dependencies -> https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html | ||||||
| # Example: platformPlugins = com.intellij.java,com.jetbrains.php:203.4449.22 | # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 | ||||||
| platformPlugins = | platformPlugins = | ||||||
| 
 | 
 | ||||||
| # Opt-out flag for bundling Kotlin standard library. | # Opt-out flag for bundling Kotlin standard library. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user