| 1 | plugins { |
| 2 | id 'java-library' |
| 3 | // com.gradleup.shadow is the maintained successor of com.github.johnrengelman.shadow. |
| 4 | // 7.1.2 bundled an ASM too old to read the Java 21 (major 65) bytecode that |
| 5 | // libwebrtc's libwebrtc.jar ships since m150. |
| 6 | id 'com.gradleup.shadow' version '9.6.1' |
| 7 | } |
| 8 | |
| 9 | java { |
| 10 | sourceCompatibility = JavaVersion.VERSION_11 |
| 11 | targetCompatibility = JavaVersion.VERSION_11 |
| 12 | } |
| 13 | |
| 14 | dependencies { |
| 15 | api files("libs/classes.jar") |
| 16 | } |
| 17 | |
| 18 | shadowJar { |
| 19 | // Replaces the old ConfigureShadowRelocation task: prefix every package in |
| 20 | // the merged jar with "livekit". |
| 21 | enableAutoRelocation = true |
| 22 | relocationPrefix = "livekit" |
| 23 | } |