mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
				synced 2025-10-31 04:00:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| buildscript {
 | |
|     repositories {
 | |
|         mavenCentral()
 | |
|     }
 | |
| 
 | |
|     dependencies {
 | |
|         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
 | |
|         classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
 | |
|     }
 | |
| }
 | |
| 
 | |
| allprojects {
 | |
|     ext {
 | |
|         nativePartTemplate = "${rootProject.projectDir.absolutePath}/native_template.gradle"
 | |
|     }
 | |
|     repositories {
 | |
|         mavenCentral()
 | |
|         google()
 | |
|         if (project.hasProperty("GITHUB_USER") && project.hasProperty("GITHUB_TOKEN")) {
 | |
|             maven {
 | |
|                 url "https://maven.pkg.github.com/InsanusMokrassar/TelegramBotAPI"
 | |
|                 credentials {
 | |
|                     username = project.getProperty("GITHUB_USER")
 | |
|                     password = project.getProperty("GITHUB_TOKEN")
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         maven { url "https://proxy.nexus.inmo.dev/repository/maven-releases/" }
 | |
|         mavenLocal()
 | |
|     }
 | |
| }
 | |
| 
 | |
| // Fix of https://youtrack.jetbrains.com/issue/KTOR-7912/Module-not-found-errors-when-executing-browserProductionWebpack-task-since-3.0.2
 | |
| rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin.class) {
 | |
|     rootProject.kotlinYarn.resolution("ws", "8.18.0")
 | |
| }
 |