-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement delayed resolve of dev config artifacts. (#140)
- Loading branch information
1 parent
993b9c3
commit 1bc3f8b
Showing
60 changed files
with
678 additions
and
703 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
common/src/main/java/net/neoforged/gradle/common/extensions/ConfigurationDataExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.neoforged.gradle.common.extensions; | ||
|
||
import net.minecraftforge.gdi.ConfigurableDSLElement; | ||
import net.neoforged.gradle.dsl.common.extensions.ConfigurationData; | ||
import org.gradle.api.Project; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public abstract class ConfigurationDataExtension implements ConfigurableDSLElement<ConfigurationData>, ConfigurationData { | ||
|
||
private final Project project; | ||
|
||
public ConfigurationDataExtension(Project project) { | ||
this.project = project; | ||
getLocation().convention(getProject().getLayout().getProjectDirectory().dir(".gradle").dir("configuration")); | ||
} | ||
|
||
@Override | ||
public Project getProject() { | ||
return project; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.