gradle

package
v0.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSingleArgumentFromFuntionCall

func GetSingleArgumentFromFuntionCall(str string, functionName string) string

GetSingleArgumentFromFuntionCall returns the single argument in a function call

Types

type Gradle

type Gradle struct {
	Repositories []GradleRepository  `yaml:"repositories,omitempty" json:"repositories,omitempty"`
	Dependencies []GradleDependency  `yaml:"dependencies,omitempty" json:"dependencies,omitempty"`
	Plugins      []GradlePlugin      `yaml:"plugins,omitempty" json:"plugins,omitempty"`
	Metadata     map[string][]string `yaml:"metadata,omitempty" json:"metadata,omitempty"`
	Blocks       map[string]Gradle   `yaml:"blocks,omitempty" json:"blocks,omitempty"`
}

Gradle stores parsed gradle

func ParseGardleBuildFile

func ParseGardleBuildFile(buildFilePath string) (gradleBuild Gradle, err error)

ParseGardleBuildFile parses a gradle build file

func (*Gradle) GetPluginIDs

func (g *Gradle) GetPluginIDs() (plugins []string)

GetPluginIDs returns plugins

func (*Gradle) Merge

func (g *Gradle) Merge(newg Gradle)

Merge merges two parsed gradles

type GradleDependency

type GradleDependency struct {
	GradleGAV
	Type     string              `yaml:"type" json:"type"`
	Excludes []map[string]string `yaml:"excludes,omitempty" json:"excludes,omitempty"`
}

GradleDependency stores dependency

type GradleGAV

type GradleGAV struct {
	Group   string `yaml:"group" json:"group"`
	Name    string `yaml:"name" json:"name"`
	Version string `yaml:"version" json:"version"`
}

GradleGAV stores GAV

type GradlePlugin

type GradlePlugin map[string]string

GradlePlugin stores repository plugin

type GradleRepository

type GradleRepository struct {
	Type string               `yaml:"type" json:"type"`
	Data GradleRepositoryData `yaml:"data,omitempty" json:"data,omitempty"`
}

GradleRepository stores repository

type GradleRepositoryData

type GradleRepositoryData struct {
	Name string `yaml:"name" json:"name"`
}

GradleRepositoryData stores respository data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL