* Convert to ESM, enforce file single naming convention. * Update fs-extra esm usage. * Fix minimatch import. * fixes * triple-beam issue is finally fixed.
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { BaseMavenRepo } from './BaseMavenRepo.js'
|
|
|
|
export class LibRepoStructure extends BaseMavenRepo {
|
|
|
|
public static readonly MINECRAFT_GROUP = 'net.minecraft'
|
|
public static readonly MINECRAFT_CLIENT_ARTIFACT = 'client'
|
|
|
|
public static readonly FORGE_GROUP = 'net.minecraftforge'
|
|
public static readonly FORGE_ARTIFACT = 'forge'
|
|
public static readonly FMLCORE_ARTIFACT = 'fmlcore'
|
|
public static readonly JAVAFMLLANGUAGE_ARTIFACT = 'javafmllanguage'
|
|
public static readonly MCLANGUAGE_ARTIFACT = 'mclanguage'
|
|
public static readonly LOWCODELANGUAGE_ARTIFACT = 'lowcodelanguage'
|
|
|
|
constructor(
|
|
absoluteRoot: string,
|
|
relativeRoot: string
|
|
) {
|
|
super(absoluteRoot, relativeRoot, 'lib')
|
|
}
|
|
|
|
public getLoggerName(): string {
|
|
return 'LibRepoStructure'
|
|
}
|
|
|
|
public getLocalForge(version: string, classifier?: string): string {
|
|
return this.getArtifactByComponents(
|
|
LibRepoStructure.FORGE_GROUP,
|
|
LibRepoStructure.FORGE_ARTIFACT,
|
|
version, classifier, 'jar')
|
|
}
|
|
|
|
}
|