Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
ad0752fe
Commit
ad0752fe
authored
Nov 11, 2020
by
modmuss50
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some IDE's (vsc) not detecting the correct java version to compile for.
parent
a126c791
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
build.gradle
build.gradle
+3
-3
No files found.
build.gradle
View file @
ad0752fe
...
...
@@ -3,6 +3,9 @@ plugins {
id
'maven-publish'
}
sourceCompatibility
=
JavaVersion
.
VERSION_1_8
targetCompatibility
=
JavaVersion
.
VERSION_1_8
archivesBaseName
=
project
.
archives_base_name
version
=
project
.
mod_version
group
=
project
.
maven_group
...
...
@@ -41,9 +44,6 @@ tasks.withType(JavaCompile).configureEach {
def
targetVersion
=
8
if
(
JavaVersion
.
current
().
isJava9Compatible
())
{
it
.
options
.
release
=
targetVersion
}
else
{
it
.
sourceCompatibility
=
JavaVersion
.
toVersion
(
targetVersion
)
it
.
targetCompatibility
=
JavaVersion
.
toVersion
(
targetVersion
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment