Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
4b8e92f0
Commit
4b8e92f0
authored
Jun 27, 2020
by
Shaka Huang
Committed by
John Wu
Jun 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile options should be set after evaulation process
Signed-off-by:
Shaka Huang
<
shakalaca@gmail.com
>
parent
fc6ef7dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
build.gradle
build.gradle
+9
-9
No files found.
build.gradle
View file @
4b8e92f0
...
...
@@ -41,15 +41,6 @@ subprojects {
maven
{
url
"http://oss.sonatype.org/content/repositories/snapshots"
}
}
if
(
getPlugins
().
hasPlugin
(
'java'
))
{
tasks
.
withType
(
JavaCompile
)
{
// If building with JDK 9+, we need additional flags to generate compatible bytecode
if
(
JavaVersion
.
current
()
>
JavaVersion
.
VERSION_1_8
)
{
options
.
compilerArgs
+=
[
'--release'
,
'8'
]
}
}
}
afterEvaluate
{
module
->
if
(
getPlugins
().
hasPlugin
(
'com.android.library'
)
||
getPlugins
().
hasPlugin
(
'com.android.application'
))
{
...
...
@@ -70,6 +61,15 @@ subprojects {
}
}
if
(
getPlugins
().
hasPlugin
(
'java'
))
{
tasks
.
withType
(
JavaCompile
)
{
// If building with JDK 9+, we need additional flags to generate compatible bytecode
if
(
JavaVersion
.
current
()
>
JavaVersion
.
VERSION_1_8
)
{
options
.
compilerArgs
+=
[
'--release'
,
'8'
]
}
}
}
if
(
module
.
name
==
'app'
||
module
.
name
==
'stub'
)
{
android
{
signingConfigs
{
...
...
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