diff --git a/cloudapi-web/build.gradle.kts b/cloudapi-web/build.gradle.kts index 05ecb55..cbf338b 100644 --- a/cloudapi-web/build.gradle.kts +++ b/cloudapi-web/build.gradle.kts @@ -20,15 +20,8 @@ kotlin { } repositories { - maven { setUrl("https://maven.aliyun.com/repository/central") } - maven { setUrl("https://maven.aliyun.com/repository/jcenter") } - maven { setUrl("https://maven.aliyun.com/repository/google") } - maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") } - maven { setUrl("https://maven.aliyun.com/repository/public") } - maven { setUrl("https://jitpack.io") } - gradlePluginPortal() - google() mavenCentral() + maven(url = "https://jitpack.io") } dependencies { diff --git a/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/kube/BusinessKubeClient.kt b/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/kube/BusinessKubeClient.kt index 4726cf9..9982db0 100644 --- a/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/kube/BusinessKubeClient.kt +++ b/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/kube/BusinessKubeClient.kt @@ -91,7 +91,7 @@ spec: apiVersion: cloudapi.scs.buaa.edu.cn/v1alpha1 kind: ResourcePool metadata: - name: personal-$userId + name: personal-${userId.lowercase()} labels: owner: $userId spec: diff --git a/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/service/Project.kt b/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/service/Project.kt index 4461565..79bf2e7 100644 --- a/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/service/Project.kt +++ b/cloudapi-web/src/main/kotlin/cn/edu/buaa/scs/service/Project.kt @@ -68,7 +68,7 @@ class ProjectService(val call: ApplicationCall) : IService, FileService.FileDeco } suspend fun createUser(userID: String) { - createUser(User.id(userID)) +// createUser(User.id(userID)) } suspend fun createUser(user: User) { diff --git a/gradle.properties b/gradle.properties index 4827c9e..c1bbeab 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,2 @@ kotlin_version=1.7.10 -kotlin.code.style=official -org.gradle.jvmargs=-Xmx4g \ No newline at end of file +kotlin.code.style=official \ No newline at end of file