forked from open-ani/animeko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
106 lines (92 loc) · 4.58 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
* Ani
* Copyright (C) 2022-2024 Him188
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
rootProject.name = "ani"
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") // Compose Multiplatform pre-release versions
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "kotlinx-atomicfu") { // atomicfu is not on Gradle Plugin Portal
useModule("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${requested.version}")
}
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
}
fun includeProject(projectPath: String, dir: String? = null) {
include(projectPath)
if (dir != null) project(projectPath).projectDir = file(dir)
}
// Utilities shared by client and server (targeting JVM)
includeProject(":utils:slf4j-kt", "utils/slf4j-kt") // shared by client and server (targets JVM)
includeProject(":utils:serialization", "utils/serialization")
includeProject(":utils:coroutines", "utils/coroutines")
includeProject(":utils:ktor-client", "utils/ktor-client")
includeProject(":utils:io", "utils/io")
includeProject(":utils:testing", "utils/testing")
includeProject(":utils:bbcode", "utils/bbcode")
includeProject(":utils:bbcode:test-codegen")
// TODO: add torrent modules back when kotlin has fixed
//includeProject(":torrent:api") // Torrent 系统 API
//includeProject(":torrent:impl:libtorrent4j") // libtorrent4j 实现
//includeProject(":torrent:impl:qbittorrent") // qBittorrent 实现
includeProject(":torrent:anitorrent")
// client
includeProject(":app:shared", "app/shared") // shared by clients (targets JVM)
includeProject(":app:desktop", "app/desktop") // desktop JVM client for macOS, Windows, and Linux
includeProject(":app:android", "app/android") // Android client
// server
//includeProject(":server:core", "server/core") // server core
//includeProject(":server:database", "server/database") // server database interfaces
//includeProject(":server:database-xodus", "server/database-xodus") // database implementation with Xodus
// data sources
includeProject(":data-sources:api") // data source interfaces: Media, MediaSource
includeProject(":data-sources:api:test-codegen") // 生成单元测试
includeProject(":data-sources:core", "data-sources/core") // data source managers: MediaFetcher, MediaCacheStorage
includeProject(":data-sources:bangumi", "data-sources/bangumi") // https://bangumi.tv
// BT 数据源
includeProject(":data-sources:dmhy", "data-sources/bt/dmhy") // https://dmhy.org
includeProject(":data-sources:acg-rip", "data-sources/bt/acg.rip") // https://acg.rip
includeProject(":data-sources:mikan", "data-sources/bt/mikan") // https://mikanani.me/
// Web 数据源
includeProject(":data-sources:web-base", "data-sources/web/web-base") // web 基础
includeProject(":data-sources:nyafun", "data-sources/web/nyafun") // https://nyafun.net/
includeProject(":data-sources:mxdongman", "data-sources/web/mxdongman") // https://mxdm4.com/
includeProject(":data-sources:ntdm", "data-sources/web/ntdm") // https://ntdm.tv/
includeProject(":data-sources:jellyfin", "data-sources/jellyfin")
includeProject(":data-sources:ikaros", "data-sources/ikaros") // https://ikaros.run/
// danmaku
//includeProject(":danmaku:api", "danmaku/api") // danmaku source interfaces
//includeProject(":danmaku:ui", "danmaku/ui") // danmaku UI composable
//includeProject(":danmaku:dandanplay", "danmaku/dandanplay")
//includeProject(":danmaku:ani:client", "danmaku/ani/client") // danmaku server
includeProject(":danmaku:ani:server", "danmaku/ani/server") // danmaku server
includeProject(":danmaku:ani:protocol", "danmaku/ani/protocol") // danmaku server-client protocol
includeProject(
":data-sources:dmhy:dataset-tools",
"data-sources/bt/dmhy/dataset-tools",
) // tools for generating dataset for ML title parsing
// ci
includeProject(":ci-helper", "ci-helper") //
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")