plugins {
    id 'java'
}

java.toolchain.languageVersion = JavaLanguageVersion.of(21)

jar {
    manifest {
        attributes(["FMLModType": "LIBRARY"])
    }
}

repositories {
    maven {
        url = "https://libraries.minecraft.net"
        metadataSources{
            mavenPom()
        }
    }
    maven {
        url = "https://maven.neoforged.net/releases"
    }
}

dependencies {
    compileOnly 'net.neoforged.fancymodloader:loader:4.0.15'
    compileOnly 'org.jetbrains:annotations:24.1.0'
}