Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
f42e9857
Commit
f42e9857
authored
Feb 13, 2020
by
jiahua.liu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
43fa3881
def0e371
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
build.gradle
build.gradle
+11
-9
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+1
-1
mirai-console/build.gradle.kts
mirai-console/build.gradle.kts
+2
-1
mirai-plugins/image-sender/build.gradle.kts
mirai-plugins/image-sender/build.gradle.kts
+1
-1
settings.gradle
settings.gradle
+1
-1
No files found.
build.gradle
View file @
f42e9857
...
@@ -11,20 +11,22 @@ buildscript {
...
@@ -11,20 +11,22 @@ buildscript {
// Do try to waste your time.
// Do try to waste your time.
classpath
'com.android.tools.build:gradle:3.5.3'
classpath
'com.android.tools.build:gradle:3.5.3'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath
(
"com.github.jengelman.gradle.plugins:shadow:5.2.0"
)
classpath
"org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath
"org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath
"org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFuVersion"
classpath
"org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicFuVersion"
}
}
}
}
def
keyProps
=
new
Properties
()
try
{
def
keyFile
=
file
(
"local.properties"
)
def
keyProps
=
new
Properties
()
if
(
keyFile
.
exists
())
keyFile
.
withInputStream
{
keyProps
.
load
(
it
)
}
def
keyFile
=
file
(
"local.properties"
)
if
(!
keyProps
.
getProperty
(
"sdk.dir"
,
""
).
isEmpty
())
{
if
(
keyFile
.
exists
())
keyFile
.
withInputStream
{
keyProps
.
load
(
it
)
}
project
.
ext
.
set
(
"isAndroidSDKAvailable"
,
true
)
if
(!
keyProps
.
getProperty
(
"sdk.dir"
,
""
).
isEmpty
())
{
}
else
{
project
.
ext
.
set
(
"isAndroidSDKAvailable"
,
true
)
project
.
ext
.
set
(
"isAndroidSDKAvailable"
,
false
)
}
else
{
}
project
.
ext
.
set
(
"isAndroidSDKAvailable"
,
false
)
}
}
catch
(
Exception
e
){}
allprojects
{
allprojects
{
group
=
"net.mamoe"
group
=
"net.mamoe"
version
=
getProperty
(
"mirai_version"
)
version
=
getProperty
(
"mirai_version"
)
...
...
gradle/wrapper/gradle-wrapper.properties
View file @
f42e9857
#Thu Feb 06 14:10:33 CST 2020
#Thu Feb 06 14:10:33 CST 2020
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
6.1
.1-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
5.4
.1-all.zip
distributionBase
=
GRADLE_USER_HOME
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionPath
=
wrapper/dists
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
...
...
mirai-console/build.gradle.kts
View file @
f42e9857
plugins
{
plugins
{
id
(
"com.github.johnrengelman.shadow"
)
version
"5.2.0"
id
(
"kotlinx-serialization"
)
id
(
"kotlinx-serialization"
)
id
(
"kotlin"
)
id
(
"kotlin"
)
id
(
"java"
)
id
(
"java"
)
}
}
apply
(
plugin
=
"com.github.johnrengelman.shadow"
)
val
kotlinVersion
:
String
by
rootProject
.
ext
val
kotlinVersion
:
String
by
rootProject
.
ext
val
atomicFuVersion
:
String
by
rootProject
.
ext
val
atomicFuVersion
:
String
by
rootProject
.
ext
val
coroutinesVersion
:
String
by
rootProject
.
ext
val
coroutinesVersion
:
String
by
rootProject
.
ext
...
...
mirai-plugins/image-sender/build.gradle.kts
View file @
f42e9857
plugins
{
plugins
{
kotlin
(
"jvm"
)
kotlin
(
"jvm"
)
java
java
id
(
"com.github.johnrengelman.shadow"
)
version
"5.2.0"
id
(
"com.github.johnrengelman.shadow"
)
}
}
version
=
"1.0.0"
version
=
"1.0.0"
...
...
settings.gradle
View file @
f42e9857
...
@@ -59,7 +59,7 @@ if (versionPos==-1){
...
@@ -59,7 +59,7 @@ if (versionPos==-1){
def
javaVersionNum
=
javaVersion
.
substring
(
0
,
versionPos
).
toInteger
()
def
javaVersionNum
=
javaVersion
.
substring
(
0
,
versionPos
).
toInteger
()
if
(
javaVersionNum
>=
11
)
{
if
(
javaVersionNum
>=
11
)
{
println
(
"jdk版本为 "
+
javaVersionNum
)
println
(
"jdk版本为 "
+
javaVersionNum
)
include
(
':mirai-debug'
)
//
include(':mirai-debug')
}
else
{
}
else
{
println
(
"当前使用的 JDK 版本为 ${System.getProperty("
java
.
version
")}, 最低需要 JDK 11 才能引入模块 `:mirai-debug`"
)
println
(
"当前使用的 JDK 版本为 ${System.getProperty("
java
.
version
")}, 最低需要 JDK 11 才能引入模块 `:mirai-debug`"
)
}
}
...
...
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