Skip to content

provide a way to read values from properties file #48

@yshrsmz

Description

@yshrsmz

Not sure the DSL below is possible, but something like this

buildKonfig {
  defaultConfigs {
    // load all values as string
    fromProperties file('./secrets.properties') {
      // specify type
      propertyAs type: 'INT', key: 'KEY_OF_PROPERTY'

      // also specify different name
      propertyAs type: 'LONG', key: 'key.of.other', name: 'DIFFERENT_NAME'
    }

    // you can also add other stuff as usual
    buildKonfigField('STRING', 'FOO', 'bar')
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions