# -*-perl-*-

package.SDDFInterface = {
    interfaces = (1.0);
    deploy = {
        generic = true;
    };

    dependencies = {
        1.0 = {
            Sun-JSR-305 = 2.x;
            Json-org-java = 3.x;
        };
    };

    # If you need Java at runtime, add a runtime dependency
    # on OpenJDK8-1.1 and a remove-dependencies clause 
    # for JDK8-1.0. For detailed instructions see:
    # https://w.amazon.com/bin/view/JDKTeam/OpenJDK/ConfigSetup#HDirectConsumption

    test-dependencies = {
        1.0 = {
            junit = 4.12;
            PowerMockMockito = 1.7.x;
        };
    };

    build-environment = {
        chroot = basic;
        network-access = blocked;
    };

    build-system = happytrails;

    build-tools = {
        1.0 = {
            # Use OpenJDK8 unless you need some features
            # that only appear in Oracle JDK8. See:
            # https://w.amazon.com/bin/view/JDKTeam/OpenJDK/ConfigSetup#HConsumingOracleJDK
            OpenJDK8 = 1.1;
            HappierTrails = 3.3;
        };
    };

    resolves-conflict-dependencies = {
        1.0 = {
            Sun-JSR-305 = 2.x;
        };
    };

    # For more information on how to declare targets for HappyTrails packages
    # see: https://w.amazon.com/?BrazilBuildSystem/HappyTrails/GettingStarted
    targets = {
        SDDFInterface-1.0 = { type = javalibrary; };
    };
};
