Skip to content

Commit 5cb25c1

Browse files
committed
Merge branch '2020.1' into 2020.2
2 parents c1662b8 + a60955f commit 5cb25c1

File tree

7 files changed

+83
-55
lines changed

7 files changed

+83
-55
lines changed

.github/workflows/macos.yml

-20
This file was deleted.

.github/workflows/publish.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish Plugin
2+
on:
3+
push:
4+
tags:
5+
- '[0-9].[0-9].[0-9]-[0-9][0-9][0-9][0-9].[1-3]'
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-java@v1
14+
with:
15+
java-version: 11
16+
- uses: actions/cache@v2
17+
with:
18+
path: |
19+
~/.gradle/caches
20+
~/.gradle/jdks
21+
~/.gradle/native
22+
~/.gradle/wrapper
23+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('gradle.properties') }}
24+
restore-keys: |
25+
${{ runner.os }}-gradle-
26+
- uses: gradle/wrapper-validation-action@v1
27+
- name: Setup publish token
28+
env:
29+
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
30+
shell: bash
31+
run: |
32+
mkdir -p ~/.gradle/
33+
echo "GRADLE_USER_HOME=$HOME/.gradle" >> "$GITHUB_ENV"
34+
echo "mcdev.deploy.token=${JETBRAINS_TOKEN}" > ~/.gradle/gradle.properties
35+
- name: Publish plugin
36+
run: ./gradlew clean publishPlugin --no-daemon --stacktrace
37+
- name: Get tag name
38+
id: get_tag
39+
shell: bash
40+
# Tag name is reversed from release name due to how IntelliJ parses plugin version numbers
41+
run: |
42+
tag_name="$(echo $GITHUB_REF | cut -d / -f 3)"
43+
echo ::set-output name=tag::$tag_name
44+
version_array=(${tag_name//-/ })
45+
echo ::set-output name=release::${version_array[1]}-${version_array[0]}
46+
- name: Create GitHub Release
47+
uses: softprops/action-gh-release@v1
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
with:
51+
tag_name: ${{ steps.get_tag.outputs.tag }}
52+
name: 'Release ${{ steps.get_tag.outputs.release }}'
53+
body: '## [View all plugin releases here.](https://plugins.jetbrains.com/plugin/8327-minecraft-development/versions/stable/)'
54+
prerelease: false
55+
draft: false
56+
files: build/distributions/*.zip

.github/workflows/linux.yml .github/workflows/test.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
name: Linux Build
2-
on: [push, pull_request]
1+
name: Test
2+
on:
3+
push:
4+
branches: ['*']
5+
pull_request:
6+
branches: ['*']
7+
38
jobs:
49
build:
510
name: Build
6-
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
os:
14+
- 'ubuntu-latest'
15+
- 'macos-latest'
16+
- 'windows-latest'
17+
runs-on: ${{ matrix.os }}
718
steps:
819
- uses: actions/checkout@v2
920
- uses: actions/setup-java@v1
@@ -13,6 +24,9 @@ jobs:
1324
with:
1425
path: |
1526
~/.gradle/caches
27+
~/.gradle/jdks
28+
~/.gradle/native
29+
~/.gradle/wrapper
1630
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('gradle.properties') }}
1731
restore-keys: |
1832
${{ runner.os }}-gradle-

.github/workflows/windows.yml

-20
This file was deleted.

build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ tasks.publishPlugin {
132132
channels(properties["mcdev.deploy.channel"] ?: "Stable")
133133
}
134134

135+
tasks.runPluginVerifier {
136+
ideVersions(listOf("IC-2020.1.3", "IC-2020.1.4"))
137+
}
138+
135139
java {
136140
toolchain {
137141
languageVersion.set(JavaLanguageVersion.of(11))

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kotlin.code.style=official
1414
ideaVersion = 2020.2
1515
ideaVersionName = 2020.2
1616

17-
coreVersion = 1.5.6
17+
coreVersion = 1.5.7
1818
downloadIdeaSources = true
1919

2020
pluginTomlVersion = 0.2.140.3644-202

readme.md

+5-11
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,19 @@ Minecraft Development for IntelliJ
2929
<td align="left"><a href="https://ci.demonwav.com/viewType.html?buildTypeId=MinecraftDev_Nightly_20211"><img src="https://tc.demonwav.com/app/rest/builds/buildType:(id:MinecraftDev_Nightly_20211)/statusIcon.svg" alt="2021.1 EAP Nightly Status" /></a></td>
3030
</tr>
3131
<tr>
32-
<td align="right" rowspan="3"><b>OS Tests</b></td>
32+
<td align="right"><b>OS Tests</b></td>
3333
<td align="left" colspan="2">
34-
<a href="https://github.com/minecraft-dev/MinecraftDev/actions?query=workflow%3A%22Linux+Build%22"><img src="https://github.com/minecraft-dev/MinecraftDev/workflows/Linux%20Build/badge.svg?branch=dev&event=push" alt="Linux GitHub Action Status" /></a>
35-
<br/>
36-
<a href="https://github.com/minecraft-dev/MinecraftDev/actions?query=workflow%3A%22macOS+Build%22"><img src="https://github.com/minecraft-dev/MinecraftDev/workflows/macOS%20Build/badge.svg?branch=dev&event=push" alt="macOS GitHub Action Status" /></a>
37-
<br/>
38-
<a href="https://github.com/minecraft-dev/MinecraftDev/actions?query=workflow%3A%22Windows+Build%22"><img src="https://github.com/minecraft-dev/MinecraftDev/workflows/Windows%20Build/badge.svg?branch=dev&event=push" alt="Windows GitHub Action Status" /></a>
39-
</td>
34+
<a href="https://github.com/minecraft-dev/MinecraftDev/actions?query=workflow%3A%22Test%22"><img src="https://github.com/minecraft-dev/MinecraftDev/workflows/Test/badge.svg?branch=dev&event=push" alt="GitHub Action Status" /></a>
35+
</td>
4036
</tr>
4137
</table>
4238

43-
Info and Documentation [![Current Release](https://img.shields.io/badge/release-1.5.6-orange.svg?style=flat-square)](https://plugins.jetbrains.com/plugin/8327)
39+
Info and Documentation [![Current Release](https://img.shields.io/badge/release-1.5.7-orange.svg?style=flat-square)](https://plugins.jetbrains.com/plugin/8327)
4440
----------------------
4541

4642
<a href="https://discord.gg/j6UNcfr"><img src="https://i.imgur.com/JXu9C1G.png" height="48px"></img></a>
4743

48-
Visit [https://minecraftdev.org](https://minecraftdev.org) for a little information about the project.
44+
Visit [https://minecraftdev.org](https://minecraftdev.org) for some information about the project.
4945

5046

5147
Installation
@@ -60,8 +56,6 @@ box, simply search for `Minecraft`. You can install it from there and restart In
6056
Building
6157
--------
6258

63-
JDK 8 is required.
64-
6559
Build the plugin with:
6660

6761
`./gradlew build`

0 commit comments

Comments
 (0)