Remove forge/liteloader specific repos.
Just put everything in the libraries repo.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
import { BaseMavenRepo } from './BaseMavenRepo'
|
||||
|
||||
export class ForgeRepoStructure extends BaseMavenRepo {
|
||||
|
||||
public static readonly FORGE_GROUP = 'net.minecraftforge'
|
||||
public static readonly FORGE_ARTIFACT = 'forge'
|
||||
|
||||
constructor(
|
||||
absoluteRoot: string,
|
||||
relativeRoot: string
|
||||
) {
|
||||
super(absoluteRoot, relativeRoot, 'forge')
|
||||
}
|
||||
|
||||
public getLocalForge(version: string, classifier?: string) {
|
||||
return this.getArtifactByComponents(
|
||||
ForgeRepoStructure.FORGE_GROUP,
|
||||
ForgeRepoStructure.FORGE_ARTIFACT,
|
||||
version, classifier, 'jar')
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,6 +5,12 @@ 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 LITELOADER_GROUP = 'com.mumfrey'
|
||||
public static readonly LITELOADER_ARTIFACT = 'liteloader'
|
||||
|
||||
constructor(
|
||||
absoluteRoot: string,
|
||||
relativeRoot: string
|
||||
@@ -12,4 +18,18 @@ export class LibRepoStructure extends BaseMavenRepo {
|
||||
super(absoluteRoot, relativeRoot, 'lib')
|
||||
}
|
||||
|
||||
public getLocalForge(version: string, classifier?: string) {
|
||||
return this.getArtifactByComponents(
|
||||
LibRepoStructure.FORGE_GROUP,
|
||||
LibRepoStructure.FORGE_ARTIFACT,
|
||||
version, classifier, 'jar')
|
||||
}
|
||||
|
||||
public getLocalLiteLoader(version: string, classifier?: string) {
|
||||
return this.getArtifactByComponents(
|
||||
LibRepoStructure.LITELOADER_GROUP,
|
||||
LibRepoStructure.LITELOADER_ARTIFACT,
|
||||
version, classifier, 'jar')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import { BaseMavenRepo } from './BaseMavenRepo'
|
||||
|
||||
export class LiteLoaderRepoStructure extends BaseMavenRepo {
|
||||
|
||||
constructor(
|
||||
absoluteRoot: string,
|
||||
relativeRoot: string
|
||||
) {
|
||||
super(absoluteRoot, relativeRoot, 'liteloader')
|
||||
}
|
||||
|
||||
public getLocalLiteLoader(version: string, classifier?: string) {
|
||||
return this.getArtifactByComponents('com.mumfrey', 'liteloader', version, classifier, 'jar')
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,14 +1,10 @@
|
||||
import { join } from 'path'
|
||||
import { BaseFileStructure } from '../BaseFileStructure'
|
||||
import { ForgeRepoStructure } from './forgerepo.struct'
|
||||
import { LibRepoStructure } from './librepo.struct'
|
||||
import { LiteLoaderRepoStructure } from './liteloaderrepo.struct'
|
||||
import { VersionRepoStructure } from './versionrepo.struct'
|
||||
|
||||
export class RepoStructure extends BaseFileStructure {
|
||||
|
||||
private forgeRepoStruct: ForgeRepoStructure
|
||||
private liteloaderRepoStruct: LiteLoaderRepoStructure
|
||||
private libRepoStruct: LibRepoStructure
|
||||
private versionRepoStruct: VersionRepoStructure
|
||||
|
||||
@@ -17,28 +13,16 @@ export class RepoStructure extends BaseFileStructure {
|
||||
relativeRoot: string
|
||||
) {
|
||||
super(absoluteRoot, relativeRoot, 'repo')
|
||||
this.forgeRepoStruct = new ForgeRepoStructure(this.containerDirectory, this.relativeRoot)
|
||||
this.liteloaderRepoStruct = new LiteLoaderRepoStructure(this.containerDirectory, this.relativeRoot)
|
||||
this.libRepoStruct = new LibRepoStructure(this.containerDirectory, this.relativeRoot)
|
||||
this.versionRepoStruct = new VersionRepoStructure(this.containerDirectory, this.relativeRoot)
|
||||
}
|
||||
|
||||
public async init() {
|
||||
super.init()
|
||||
await this.forgeRepoStruct.init()
|
||||
await this.liteloaderRepoStruct.init()
|
||||
await this.libRepoStruct.init()
|
||||
await this.versionRepoStruct.init()
|
||||
}
|
||||
|
||||
public getForgeRepoStruct() {
|
||||
return this.forgeRepoStruct
|
||||
}
|
||||
|
||||
public getLiteLoaderRepoStruct() {
|
||||
return this.liteloaderRepoStruct
|
||||
}
|
||||
|
||||
public getLibRepoStruct() {
|
||||
return this.libRepoStruct
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user